meta_search
meta_search copied to clipboard
Using class_name in model to allow search
Just wondering how I would allow search for something like this:
belongs_to :requestor, :class_name => "Account", :foreign_key => "requestor_id"
<%= f.collection_select :requestor_full_name_contains, Requestor.all, :full_name, :full_name, :include_blank => true %>
Any help would be appreciated. Thanks!!