This is something related with data... i had that several times, but i can't remember exacly. But i can give you a hint to catch it: remove all columns from search, and add one by one. If this happens only in production, copy the database if you can, to test only.
I think that it could come from active-scaffold-column sorting also tell me how it goes On Mon, Apr 15, 2013 at 1:48 AM, Tim Uckun <[email protected]> wrote: > Hey guys. > > I am having an error when trying to use field search on one of my models. > This doesn't happen on all models but does happen on some of them. It also > doesn't happen in development but happens in both staging and production > environments. > > The error is > > A ActionView::Template::Error occurred in pma_postcodes#index: > > undefined method `<=>' for nil:NilClass > /home/bingatron/chrysler/staging/shared/bundle/ruby/1. > 8/bundler/gems/active_scaffold-7651fa62a8d8/lib/active_scaffold/helpers/association_helpers.rb:26:in > `sort_by' > > In some models this error comes up on the list, on others when I hit the > search button. > > I am using the latest AS from HEAD. Still on Ruby 1.8.7 but latest rails. > > -- > You received this message because you are subscribed to the Google Groups > "ActiveScaffold : Ruby on Rails Gem" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/activescaffold?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails Gem" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/activescaffold?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
