Jump to content

The ultimate community for Ruby on Rails developers.


Photo

collection_select dropdown


  • Please log in to reply
No replies to this topic

#1 amirmiller

amirmiller

    Passenger

  • Members
  • 2 posts

Posted 08 April 2014 - 11:40 AM

Hi,

 

I am very new to Ruby on Rails.

I am using a very old 1.5 version of Ruby, that is not up to me, it's just a given for this task.

Using scaffolding, I created a table of cases, each case has a status.

Statuses are taken from a different table which is joined using belongs_to.

Up to this point I am able to read values all is OK.

I created a select box using collection_select and trying to use the debugger to understand why it's not saving.

I see the following:

"status_id"=>{"status_id"=>"Red"}

 

Can someone please explain to me what each one of the items in this string means?

 

Thanks,

 

Amir.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users