I'm trying to use Bundler for existing Rails 2.3.5 app and got a very
The problem is that on the very first request only the contents of the
action view file are rendered - i.e. when loading the home page
(controller: home, action: index) I get only contents of the app/views/
home/index.html.haml file as the response with no layout at all. On
the second and on subsequent requests everything is ok.
I.e. if my app/views/layouts/application.html.haml file has just
string "LAYOUT" and app/views/home/index.html.haml has string "VIEW",
I get "VIEW" as a response for the first request and "LAYOUT" as a
response for the second request.
It causes problems i.e. when running Cucumber features, because i.e. I
access login form that is rendered in the layout file
Any idea what can be wrong?
The app uses gems that need to be required in a special order (i.e.
authlogic must be required before resource-controller), so I don't use
Bundler.require, but manually require all gems.