My Member model belongs to ResidenceLocation, but somehow the belongs_to
statement got commented out. Everything seemed to work except that a
field_search that included Residence Location as one of the fields caused a
hard-to-track crash. I traced it to line 41 in finder.rb, in the
condition_for_column method:
if self.respond_to?("condition_for_#{column.name}_column")
At that point column is nil (not being found since it didn't have the
belong_to, presumably), so column.name causes an exception. That's
understandable, but it would be nice to get a error message either there or
when even trying to set up a field search that references an undefined (or
wrongly defined) field.
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/activescaffold/-/yCZudQ--YacJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.