Use collection_select
Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/
Use collection_select
Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/
Julian Leviston wrote:
Use collection_select
Program has been error >>
wrong number of arguments (4 for 5)
error on line 28
27: <select name="area_id_<%=person.id%>_<%=date%>"> 28: <%= collection_select @areas, :id, :name, (shift.area_id if shift) %> 29: </select>
No! Use intelligence! the entire select tag is replaced by collection
select. Look on the API for syntax.
Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/