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 :

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)
I’m here

This is really frustrating, the development.log file contains thousands
const_missing' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:189:inconst_missing’

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

Any help appreciated, this is very frustrating…

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)”

application_controller.rb file should be named application.rb

Why ? Dunno… but what the hell !

at least routes.rb should be

ActionController::Routing::Routes.draw do |map|
map.connect ‘:controller/:action/:id’

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs