2009/8/31 Quee Mm <[email protected]>: > > Well with this code, > > > <%= f.select(:year_made, ((1980..Time.now.year).collect {|p| [ p, p > ]}).reverse, {:prompt=>"Select a Year"}) %> > > it does not seem to work and that makes me wonder what is wrong with > this code?
What does the form_for line look like? What does generated html of the select look like? (View, Page Source or similar in your browser) Have you checked that year_made contains the previous value. Possibly put <%= @object.year_made %> in the form to check. 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 -~----------~----~----~----~------~----~------~--~---

