what is the syntax for getting the selected value in select_tag
for example : in model
@customer = Customer.find(:all).map{ |i| i.name}
redirect_to :action => ‘show’,:name=>@customer
i given like this to get the value from database and for view
<%= select_tag (:name, options_for_select(@customer.each{ |name| puts
name })) %>
Name
<%= text_field 'customer','name' %>
Place
<%=text_field 'customer','place'%>
Balance
<%= text_field 'daily','balance' %>
Todays Amount
<%= text_field 'customer', 'todays' %>
how to solve this please reply me