disabling a select

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

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 = {})

select(:wage, :name, @wages, {}, {:disabled => true})

there is a > missing