Christophe Christophe
2006-Mar-22 12:51 UTC
[Rails] stack level too deep error : Pulling my hairs out
Hello, I''ve changed something in my test application and since I can''t find the cause of the "stack level too deep" raising on every request. I''ve removed almost every part of code and the error still occurs, eg with this url : www.myhost.com/main/index routes.rb (nothing else in this file) map.connect '':controller/:action/:id'' app/main_controller.rb (nothing else in this file) class MainController < ApplicationController layout "common" def index end end views/main/index.rhtml (nothing else in this file) <b>I''m here</b> This is really frustrating, the development.log file contains thousands of /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:72:in `const_missing'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:189:in `const_missing'' Below the stack trace there is this note : This error occured while loading the following files: script/../config/../app/controllers/main_controller.rb Any help appreciated, this is very frustrating... -- Posted via http://www.ruby-forum.com/.
Christophe Christophe
2006-Mar-22 13:02 UTC
[Rails] Re: stack level too deep error : Pulling my hairs out
I forgot to mention app/controller/application_controller.rb class ApplicationController < ActionController::Base end One mistake on the previous post read "app/controller/main_controller (nothing else in this file)" instead of "app/main_controller.rb (nothing else in this file)" -- Posted via http://www.ruby-forum.com/.
Christophe Christophe
2006-Mar-22 13:30 UTC
[Rails] Re: stack level too deep error : Pulling my hairs out
application_controller.rb file should be named application.rb Why ? Dunno... but what the hell ! -- Posted via http://www.ruby-forum.com/.
Emin Hasanov
2006-Mar-22 14:41 UTC
[Rails] Re: stack level too deep error : Pulling my hairs out
at least routes.rb should be ActionController::Routing::Routes.draw do |map| map.connect '':controller/:action/:id'' end On 3/22/06, Christophe Christophe <kandjidev@yahoo.fr> wrote:> > application_controller.rb file should be named application.rb > > Why ? Dunno... but what the hell ! > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060322/e34f9976/attachment-0001.html