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 8606493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:06:10+00:00 2026-06-12T03:06:10+00:00

I made a drop down list using collection_select <%= collection_select(:page, :user_id, @users, :id, :full_name)

  • 0

I made a drop down list using collection_select

<%= collection_select(:page, :user_id, @users, :id, :full_name) %>

that part works fine. I am having trouble on saving it/processing it using the controller, the APIdock isn’t very helpful on that part and I haven’t been able to get the one example I found to work. Can anyone explain to me how I can process the selected value in the controller?

  • 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-12T03:06:12+00:00Added an answer on June 12, 2026 at 3:06 am

    You will have a value

    params[:page][:user_id]
    

    which will correspond to the value selected in the form. You can see it inspecting the params variable.

    IT is a number, the ID of the selected user. You could load the user by

    @user = User.find(params[:page][:user_id])
    

    but it’s useless. In fact, if the user_id property of the page is accessible, then with the usual

    @page.update_attributes(params[:page]) # in the update action
    

    or

    @page.create(params[:page]) # in the create action
    

    you will get the user in the page as @page.user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my aspx page I have drop down list that initialy in page load
Using CSS and Jquery i made a drop down like thing. (So that i
So basically I am trying to validate my drop down list (combobox) using the
I made a custom drop-down list. And I want it to function like the
I am trying to load options to drop-down list depending on the selection made
I have this application that has a form with a drop-down list and a
I have a panel with a form that has a drop down list with
I have a drop down menu made with Jquery. Right now, if you hover
Why is the Select or enter a database name drop down list blank when
I need some help please. I need to create a drop down list and

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.