Open rctneil opened 2 weeks ago
I can't see the Undefined method 'find' for nil in the search field.
in the stack trace. Can you please find it and send the complete stack trace @rctneil?
What would help is a reproduction repo where we can test it. Can you please set one up with the things needed for this reproduction?
rctneil?
This is the issue. When I click the search field, that's all I get in my terminal window. I don't see anything else. I find this a lot with Avo, I don't see much output at the console level.
I'll try to make a repro.
rctneil?
This is the issue. When I click the search field, that's all I get in my terminal window. I don't see anything else. I find this a lot with Avo, I don't see much output at the console level.
I'll try to make a repro.
It depends on what's happening. We're not stopping anything from being logged. It's how Rails treats each error.
Yes, please! The reproduction repo really helps. Without logs or reproduction we can't figure it out either.
This issue has been marked as stale because there was no activity for the past 15 days.
Hi,
I have a belongs to which is searchable. I want to limit the results to only those that match the selected Venue of the Visit that I am creating.
My Cycle Resource has this field:
field :cyclable, as: :belongs_to, polymorphic_as: :cyclable, types: [::Attraction], searchable: true, name: "Attraction", attach_scope: -> { query.from_visit_venue_only }
my Attraction Model has this scope:
scope :from_visit_venue_only, -> (parent) { where('venue = ?', parent.visit.venue) }
But I get Undefined method 'find' for nil in the search field.
Any ideas?
As far as I can tell, I'm passing the parent through to the scope correctly.