Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Using class_name in model to allow search #88

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

Using class_name in model to allow search #88

marclipovsky opened this issue Jan 4, 2012 · 0 comments

Comments

@marclipovsky
Copy link

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant