Topic: Query Regarding collection_select
I have a collection_select in my form, for the first time the whole data gets loaded below is the code for the same
<%= f.collection_select(:group_id, Group.order(:name), :id, :name, :prompt => "All") %>
on change of the item in the collection_select the filtered data is getting displayed by using ajax and a function in the controller , the problem lies when i select the All item in the drop down box which is added using (:prompt => "All") i want to display all the items.
Please direct me to a solution.