Thursday
Jul312008
Rails: Don't create a controller namespace with the same name as one of your models
Thursday, July 31, 2008 at 10:03PM
For example:
I have a model Partner and I have a parter section of the site I'm building so I created a namespace Partner.
That results in lots of these:
and that results in lots of these:
:( :( :(
More here.
I have a model Partner and I have a parter section of the site I'm building so I created a namespace Partner.
That results in lots of these:
inflector.rb:298: warning: toplevel constant SignupsController referenced by Partner::SignupsControllerand that results in lots of these:
:( :( :(
Jeremy Voorhis Says:
June 30, 2006 at 10:04 am
In Ruby, you cannot have a class and a module with the same name.
More here.

Reader Comments