Forum: Ruby on Rails stack level too deep error : Pulling my hairs out

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
9c0eebc506c56c64dc616cdf123fa671?d=identicon&s=25 Chris Chris (aboulafia)
on 2006-03-22 13:51
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 :

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

views/main/index.rhtml (nothing else in this file)
<b>I'm here</b>

This is really frustrating, the development.log file contains thousands

Below the stack trace there is this note :
This error occured while loading the following files:

Any help appreciated, this is very frustrating...
9c0eebc506c56c64dc616cdf123fa671?d=identicon&s=25 Chris Chris (aboulafia)
on 2006-03-22 14:02
I forgot to mention app/controller/application_controller.rb

class ApplicationController < ActionController::Base

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)"
9c0eebc506c56c64dc616cdf123fa671?d=identicon&s=25 Chris Chris (aboulafia)
on 2006-03-22 14:30
application_controller.rb file should be named application.rb

Why ? Dunno... but what the hell !
7cda78d70ab775710f6fa24e0a5b68db?d=identicon&s=25 Emin Hasanov (Guest)
on 2006-03-22 15:42
(Received via mailing list)
at least routes.rb should be

ActionController::Routing::Routes.draw do |map|
  map.connect ':controller/:action/:id'
This topic is locked and can not be replied to.