Just pressing on search button without select items from the select box , all records should appear.
<%=select("item", "item_priority_id", ItemPriority.all.collect {|p| [ p.name, p.id ] },{:include_blank => 'All'},{:multiple=>true})%>
problems of the above existing code are:
- default 'All' will not work ie, it will give 'No Records' as output.
- A user selection of 'All' is needed to get all records.
- Error is appearing when multiple option including 'All' is selected.