RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: mongeta
Is it possible to Create Ransack::Search object without querying DB ?
I'd like to be able to create a Ransack::Search object to be passed into a search_form_for, but the initial creation of the search object queries the database, wich I don't want.
I want to show an initial blank form with Ransack::Search options to search, without calling the database.
How can I do that ?
Asked in stackoverflow