Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Gal D
RE: Nested models expected but not present [ reply ]  
2008-08-28 15:19
In my case i get the opposite... i have something like app/models/foo/something.rb which defines class Foo::Something and i get this error:

uninitialized constant Something (NameError)

but when i do class Something than it works ok.

why? is railroad really support nested models and namespace conventions?

can someone post an example?

By: Ron Evans
RE: Nested models expected but not present [ reply ]  
2007-06-23 01:04
I pretty much have the same problem, and even exclusion of the module files doesn't help (the -e flag).

Anyone figured out a way past this?

By: James Moore
Nested models expected but not present [ reply ]  
2007-05-15 00:19
If you have models that are in a directory:

app/models/foo/something.rb

railroad expects the file to define Foo::Something. That's a convention that Rails supports, but it's not required. something.rb isn't required to be nested inside Foo. Any way to tell railroad that particular directories don't imply modules?