Using class_name in model to allow search #88

Open
marclipovsky opened this Issue Jan 4, 2012 · 0 comments

Comments

Projects
None yet
1 participant

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment