Blog

Monday, October 7, 2013

Rails: undefined method `action' for YourController:Class

You will receive this error if you have created your controller class manually (i.e. without the Rails generators) and have not inherited from ApplicationController. For example


This is easily fixed by adding ApplicationController as the parent. Note the change on line #1.

Please note this blog is no longer maintained. Please visit CivilCode Inc - Custom Software Development.