I have view
<%= form_tag('filter_ebook', :method => :post, :remote => true) do %>
Filter By: <%= select_tag "action", options_for_select(search_price),:onchange => "this.form.submit();" -%>
<%end%>
Routes
resources :ebooks do
collection do
get 'search'
post 'filter_ebook'
end
end
I have applied on action on change of dropbox, but when I have saw param in action there is no value of selected value of dropbox.
I got {"utf8"=>"✓", "authenticity_token"=>"wnsNDzco60UdjEfOggtmnGCxhY1rzyVSm4WCCdt12Fs=", "action"=>"filter_ebook", "controller"=>"ebooks"}
But I want selected value in action how can I get it?