I'm newbie for ROR.

I was create select box for employee who swap position when they work.

ex. mr.John has default position as a service but he can swap position
to driver .

In select box i want to show default position first.

but my app it not show default first it must select by myself.

how i create the select box by selected value with ROR command

now i use

<select name="area_id_<%=person.id%>_<%=date%>">
<%= options_from_collection_for_select @areas, :id, :name,
(shift.area_id if shift) %>
-- 
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to