meta_search icon indicating copy to clipboard operation
meta_search copied to clipboard

Using class_name in model to allow search

Open marclipovsky opened this issue 13 years ago • 0 comments

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!!

marclipovsky avatar Jan 04 '12 13:01 marclipovsky