2009/8/31 Quee Mm <[email protected]>:
>
> Man i always post my questions wrong,
>
> My dropdown will contain date range from 1980 to current year where as
> the db will only contain the saved years say 2000.

Assuming that you have
form_for @some_object do |f|
where @some_object is the object being edited and that
@some_object.year_made contains the previous selection then the
dropdown should default to the current selection, I think.

Colin

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to