I'm using ruby 2.1.2 and rails 4.1.1.
When I launch my app with 'rails s' I get no error in the terminal but when i enter in a web address for any page of the site, the terminal throws up this error:
undefined method `layout' for HighVoltage::PagesController:Class
Any ideas what i might be doing wrong?
This means your
ApplicationControllerisn't inheriting fromActionController::Base(for instance if you are using Rails::API and inheriting fromActionController::API).If you want to leave the parent class of
ApplicationControllerunchanged, one workaround is to make your ownPagesController: