Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails / application.html.erb not loading

I created a ruby application and the application.html.erb is never loaded (looking at webrick output, I never get "Rendered CLASS/index.html.erb within layouts/application", but "Rendered CLASS/index.html.erb")

CLASS.html.erb never gets loaded either.

Only when explicitly specifying "render :file => 'layouts/application'" in the controller, application.html.erb is loaded.

Can anyone help?

Thanks a lot in advance

Sebastien

like image 827
Sebastien Avatar asked Oct 27 '10 08:10

Sebastien


Video Answer


1 Answers

Ensure that you're controller is inheriting from the ApplicationController.

class YourController < ApplicationController
  ...
end
like image 124
originalhat Avatar answered Sep 20 '22 22:09

originalhat