On Jun 3, 2009, at 17:23 , Neal Clark wrote:

>> I started looking into this because I wasn't getting my layout.
>
> this makes me think--maybe there is no problem with your controller.
> is it possible that some generator created an additional layout in  
> app/
> views/layouts and that's what you're seeing?
>
> like if you do 'script/generate rspec_scaffold Foo' you get app/views/
> layouts/foo.html.erb which will override app/views/layouts/
> application.html.erb. so unless you delete it, anything under /foo
> will be rendered with that other layout...

Looks like what happened is that I monkeypatch ApplicationController  
in another plugin. I think that made the lazy loader think the main  
file had already been loaded.

I added require 'application_controller' to that file, and it's all  
good (so far :-) ).

--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to