"too high stack level" with every change of routes .rb

Every time I change my routes. rb I get a "too high stack level" on every first request, and then get a "routing error" until I restart my development server. After a restart, everything works like a charm.

The trace says the following:

SystemStackError (stack level too deep): actionpack (3.2.9) lib/action_dispatch/middleware/reloader.rb:70 Rendered /Users/timo/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms) Rendered /Users/timo/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.7ms) Rendered /Users/timo/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (15.6ms) 

Unfortunately, I cannot return when this problem occurs, followed by updating or changing the code or so on. All I know has happened lately, and it happened with rails 3.2.8 and mri 1.9.3-p125, which I updated to rails 3.2.9 and mri 1.9.3-p327 without effect.

This is actually only annoying (how it works after a restart), but help is still appreciated!

+4
source share
1 answer

Quote from an earlier version of the OP post:

I could find the culprit: MAKE SURE! When I comment The following lines work fine.

 devise_for :listeners, :controllers => {:registrations => "listeners/registrations", :invitations => "listeners/invitations"}, :path_names => {:sign_in => 'login', :sign_out => 'logout'} devise_scope :listener do get "login", :to => "devise/sessions#new" end 

Now I also know that this problem is a duplicate: rails 3 levels stack level too deep

+1
source

All Articles