You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= search_form_for @search do |f| -# all of the fields from CiberBatchSummary work
= f.label :creation_date_gteq, 'Creation Date Start'
= f.text_field :creation_date_gteq -# none of the fields from CiberAirAndTollRecord work
= f.label :ciber_air_and_toll_records_call_date_gteq, 'Call Date Start'
= f.text_field :ciber_air_and_toll_records_call_date_gteq
= f.submit 'Search'
The error message:
undefined method `ciber_air_and_toll_records_call_date_gteq' for #<Ransack::Search:0x0000000826ae78>`
Does Ransack not like associated models with underscores in their names, or am I just doing something totally wrong?
Thanks!
The text was updated successfully, but these errors were encountered:
I'm having a problem creating a form to search a model with an association.
Summary Model:
Record Model:
Controller:
Search Form:
The error message:
Does Ransack not like associated models with underscores in their names, or am I just doing something totally wrong?
Thanks!
The text was updated successfully, but these errors were encountered: