I am having to explicitly render :layout => 'application' in my controller actions in order to get my new rails 3 app to actually use the application.html.erb layout file.
Any obvious things to look for that I am doing wrong? If I don't call the :layout option it just doesn't render the layout. I get a message like:
Processing by FooController#index as HTML
...when I read the terminal window trace on WEBrick
I know this is resing a dead thread but I recently ran into the same issue. My controller was inheriting from ActionController::Base and not ApplicationController. I had the same issue as you were having, until I fixed that.
I ran into the same issue, the problem ended up being that someone had defined an initialize method for the controller.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With