On Sat, Aug 29, 2009 at 1:09 AM, Quee
Mm<[email protected]> wrote:
> <code>
> <%= f.select(:year_made, ((1980..Time.now.year).collect {|p| [ p, p
> ]}).reverse, {:prompt=>"Select a Year"}) %>
> <%= f.select(:year_imported, ((1980..Time.now.year).collect {|p| [ p, p
> ]}).reverse, :prompt=>"Select a Year") %>
> <%= f.select(:year_registered, ((1980..Time.now.year).collect {|p| [ p,
> p ]}).reverse, :prompt=>"Select a Year") %>
> </code>
If you look at this with syntax highlighting, like in your pastie, you'll see
there's a difference in the code for the first vs second and third. May not
be the issue but...
> then i am using JavaScript to control what the drop downs will show..
I would first disable JavaScript and make sure the selects are being
generated with the initial values you want.
Then, if this is strictly a JS issue (and it fails in Firefox) you can use
Firebug to troubleshoot the problem.
--
Hassan Schroeder ------------------------ [email protected]
twitter: @hassan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---