Undefined render_to_body method for AbstractController module :: Rendering

I created a new rails application (3.2.3, ruby ​​1.9) and will try to start the server. The server started fine, but then I go to http: // localhost: 3000 I have an error:

    => Rails 3.2.3 application starting in development on http://0.0.0.0:3000
    => Call with -d to detach
    => Ctrl-C to shutdown server
    [2012-05-09 22:20:03] INFO  WEBrick 1.3.1
    [2012-05-09 22:20:03] INFO  ruby 1.9.3 (2012-02-16) [i686-linux]
    [2012-05-09 22:20:03] INFO  WEBrick::HTTPServer#start: pid=3998 port=3000
    [2012-05-09 22:20:05] ERROR NameError: undefined method `render_to_body' for module `AbstractController::Rendering'

What is it?

+3
source share
2 answers

I ran into this problem when using HAML version 3.1.5. A return to 3.1.4 fixed it. A full stitch will be helpful in diagnosing your problem if it is not HAML.

+6
source

If you just started your application, better go with alpha

gem 'haml', '~> 3.2.0.alpha.10'

To be ready for new materials

+2
source

All Articles