I have the following three items in the db:

:year_made
# a value between 1980 and Time.now.year

:year_imported
# "Local" or a value between :year_made and Time.now.year

:year_registered
#If :year_imported == "Local"
 # a value between :year_made and Time.now.year
#else
 # a value between :year_imported and Time.now.year
#end

I am trying to build drop downs which follow these rules and am running
into difficulties. Any help in building these where they work both in
new and edit action (with the correct value as saved in db preselected
will be greatly appreciated)
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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