Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8138093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:23:16+00:00 2026-06-06T11:23:16+00:00

I am passing an object like this: -@users.each do |user| %tr %td=link_to(user.first_name, users_user_path(user), :title

  • 0

I am passing an object like this:

-@users.each do |user|
          %tr
            %td=link_to(user.first_name, users_user_path(user), :title => user.first_name)
            %td=user.first_name

but I am not exactly sure how to retrieve the user object in the controller. I try something like this:

user = User.new(params[:@user])
@user = params[:@user]

But nothing like that works. How is this supposed to work?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T11:23:17+00:00Added an answer on June 6, 2026 at 11:23 am

    You were close.. to get the user in the controller, you would do:

    @user = User.new(params[:user])
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am passing a JSON object and an array to a Javascript function, but
I am passing one parameter/object to the function RefValTest(object oIn) by the value but
I am building a list of Users. each user has a FullName. I'm comparing
For parsing JSON like this twitter API users/show response I've been using Jackson and
Possible Duplicate: passing in object by ref With the code below, the output would
I'm passing an object from jQuery to a MVC3 Controller via a $.ajax POST.
I am passing an object from one asp.net page to another. I'm encoding the
I know that when passing an object by value to a function, the move
I'm passing an json object to my js file: <script type=text/javascript src=../js/main.js> { lang:
I am passing a JSON object as a reference to my custom jquery widget

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.