Skip to content


RubyOnRails Controllers

when creating a new controller the file name of the controller has to be the same as the controller itself and it can be either xxxxx_controller or just xxxxxx

For example

mytest_controller.rb - ok

mytest.rb - ok

mytest_co.rb - not ok

also make sure you add ::BASE after the class name definition or you will get a horrifying error... well not horrifying but at least not the result you are expecting.

As always, this applies to WINXP - LAMP - ROR installation

Posted in ROR.

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.