Model Search Returning a NoMethodError #1579

JohnGoodman opened this Issue Mar 25, 2013 · 5 comments


None yet

5 participants


Hey, when I search for something in rails admin I get the following error:

 NoMethodError (undefined method `[]' for nil:NilClass):
 vendor/bundle/ruby/1.9.1/bundler/gems/rails_admin-d9b5c1ee9ca9/lib/rails_admin/adapters/active_record.rb:140:in `get_conditions_hash'

I get this error for any model I search. The funny thing is, searching works fine locally, but on Heroku this is what I get. Here is a gist of my config file:

Can someone provide some insight as to what is causing this error?

Thanks and let me know if you need any more information.


I get same errors when my type of fields in rails admin config different with fields in my DataBase.


I'm getting the same error.


Over a year ago and not solved yet?


I'm getting this error only on production environment. Do you guys have some workaround yet?


The problem is at this line:

On heroku Rails.configuration.database_configuration['production'] is not defined.

@mshibuya mshibuya closed this in #1941 Mar 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment