Displaying 1 result from an estimated 1 matches for "real_cut".
Did you mean:
area_cut
2011 May 05
1
Array params in form_tag
...form_tag :remote=>true
form.erb
<%#= form_tag reporte_client_reports_path do%>
<%= form_tag reporte_client_reports_path,:remote=>true do%>
<p>
<%= label_tag :cuts %>
<%= select_tag "cuts[]", options_from_collection_for_select(@cuts,
"real_cut", "cut"), :multiple=>true, :id => "cuts"%>
</p>
<p>
<%= submit_tag ''Send'' %>
</p>
<%end%>
Controller
def report
@cuts = params[:cuts]
respond_to do |format|
format.html {render :layout => f...