Been playing around with a few things here but can''t seem to disable
this select :
<p>Wages<br>
<%= @wages = Wage.find(:all, :order => "id").map { |w| [w.name,
w.id] }
select(:wage, :name, @wages, {:disabled = true})%>
Anyone know ?
TIA
Stuart
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---
Dark Ambient wrote:> Been playing around with a few things here but can''t seem to disable > this select : > > <p>Wages<br> > <%= @wages = Wage.find(:all, :order => "id").map { |w| [w.name, w.id] } > select(:wage, :name, @wages, {:disabled = true})%> >You want: select(:wage, :name, @wages, {}, {:disabled = true}) so select is html_options ( 5th param ) not options ( 4th param ) *select*(object, method, choices, options = {}, html_options = {}) --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
there is a > missing
select(:wage, :name, @wages, {}, {:disabled => true})
-- 
Heri R.
http://sprinj.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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---