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.
Tim Harding |
1 Comment | 
Reader Comments (1)
コーチアウトレットのハンドバッグ豊富な材料の変化、柔らかい革を使用し、京皮膚、細かい縞模様の布や他の生地の非常に代表的なコーチ、魅力的なスタイルはエレガントなソフト気質は、コーチ財布ゆったりとしたに明らかにした。