On Wednesday, July 22, 2015 at 5:17:29 PM UTC+1, agusddt wrote: > > I was uploading my app to a server, put it in production mode on the > server, still on development mode locally and suddenly I cannot run "rails > server" anymores since it dies automatically with this error: > > /Users/agusddt/developments/crm/config/initializers/sunspot_configuration.rb:52:in > > `block in <top (required)>': undefined method `gsub' for nil:NilClass > (NoMethodError) > > from > /Users/agusddt/developments/crm/config/initializers/sunspot_configuration.rb:45:in > > `each' > > from > /Users/agusddt/developments/crm/config/initializers/sunspot_configuration.rb:45:in > > `<top (required)>' >
[snip] > > Taking a look into the logs appears just a warning: > > DEPRECATION WARNING: Currently, Active Record suppresses errors raised > within `after_rollback`/`after_commit` callbacks and only print them to the > logs. In the next version, these errors will no longer be suppressed. > Instead, the errors will propagate normally just like in other Active > Record callbacks. > > > > I doubt this warning is relevant - the probably is almost certainly in config/initializers/sunspot_configuration.rb:52 Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/df49b3b3-77f5-445c-abfb-c9ffc8ac63d2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.