Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Using class_name in model to allow search #88

Open
marclipovsky opened this Issue · 0 comments

1 participant

@marclipovsky

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
Something went wrong with that request. Please try again.