Alright, so I fixed my problem, and wanted to post it here for anyone
else that might be having the same issue. Basically, I just prefixed
my model classes with two colons, like so:
@node = ::Node.new
This forces the namespaced controller to look for the model in the
standard model directory.
On Jan 2, 8:14 am, Nicholas Young
<nicho...-xC5Qu3Aly4iS4QlAQSBiwtBPR1lH4CV8@public.gmane.org>
wrote:> Hi everyone,
>
> I''m building a CMS-y app, and wanted to namespace my admin
> controllers, ex. "admin/pages/new". However, it appears that I
can''t
> get to my models, which are just in the general /app/models directory.
> Whenever I try to call a model, I get an Uninitialized Constant
> error... I''ve seen Radiant CMS do this, apparently without any
> issues... Ideas?
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.