search for: ransack

Displaying 5 results from an estimated 5 matches for "ransack".

2012 Sep 04
3
Thinking Sphinx and Ransack in the same application?
I have Ransack set up to do simple attribute-based search in my application. Now, I''m trying to add TS to the app to enable full-text searching. Trouble is, both of these define a Model#search method. Has anyone here ever tried this combination? Is there a way to rename the search method on either of the...
2012 Feb 21
10
Search of multiple columns
I am currently writing a search method for my rails applications and at the moment it works fine. I have the following in my game.rb: def self.search(search) if search find(:all, :conditions => [''game_name LIKE ? OR genre LIKE ? OR console LIKE ?'', "%#{search}%", "#{search}", "#{search}"]) else find(:all) end end No that searches
2013 May 27
3
Ransack, acts-as-taggable-on and checkboxes in search form
need some help on ransack filtering. I have model Project, which has many tags through acts_as_taggable gem. Project.rb: class Project < ActiveRecord::Base include PublicActivity::Common belongs_to :customer belongs_to :category has_many :attachments, :as => :attachable has_many :r...
2011 Nov 20
3
Use Ransack with radio buttons for boolean values
Hello I''m trying to search for active and non active users. These radio buttons work just fine except that it didn''t reselect itself after the form has been submitted. So, what should I do to ensure it will be selected just like how my text field populated automatically after the form has been submitted? = search_form_for @q do |f| = f.radio_button :is_active_false, 1 =
2012 Jun 16
1
searching on model and related attributes
...d be user friendly to put them in a long drop-down list, so I''m tempted to let users type in the name and level manually. If they don''t type the name correctly, then I guess they won''t get the right results. I''ve looked at several gems (including searchlogic and ransack) but none seem to give me the ability to search related models in this way. I might have to knock together something from scratch but I don''t want to end up being hideously inefficient. Grateful for any pointers on this, and please let me know if I haven''t explained it well enoug...