Saturday, April 23, 2011

[Rails] Foreign key dropdowns in scaffolded views

Hello,

i created 2 models using scaffolding with rails 3 the models were
locations and jobs

1) Each job has a location

i created the required reference calls in the scaffold generation code
but when i look at the view to create a new job, all i see is a
textbox where i should add the location ID.

How can i get that to be a dropdown instead for a better user
experience?

Thanks

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate