我有观点
<%= form_tag('filter_ebook', :method => :post, :remote => true) do %>
Filter By: <%= select_tag "action", options_for_select(search_price),:onchange => "this.form.submit();" -%>
<%end%>
路线
resources :ebooks do
collection do
get 'search'
post 'filter_ebook'
end
end
我已经申请了更改保管箱的操作,但是当我看到参数在起作用时,保管箱的选定值没有任何值。
我有{"utf8"=>"✓", "authenticity_token"=>"wnsNDzco60UdjEfOggtmnGCxhY1rzyVSm4WCCdt12Fs=", "action"=>"filter_ebook", "controller"=>"ebooks"}
但我想要选择的价值在行动我怎么能得到它?