Michael,

Although I see why it was done initially, I personally have issues
with namespaced controllers.  You probably failed to put the
controller inside the Admin module, or put it in the wrong directory,
which happens all the time. For the most part, it's just easier to
change the route and keep the controller in the root namespace.

Sean

On 2/18/07, Michael Jones <[EMAIL PROTECTED]> wrote:
> Thanks for the suggestions Jacob.
>
> The way I solved this was by editing my xxx_extension.rb file in the
> routes section:
>
> old: map.connect 'admin/tools/:action', :controller => 'admin/tools'
> new: map.connect 'admin/tools/:action', :controller => 'tools'
>
> Weird, works fine on my local box but in production mode on textdrive
> I have to run it this way.
>
> If someone has ideas of why this is the case I'd love to hear it.
>
> Thanks-
> Michael
> On 2/16/07, Jacob Burkhart <[EMAIL PROTECTED]> wrote:
> > First, make sure that your App is in production mode in environment.rb.
> >
> > If that doesn't solve everything, then you can force things to work with
> > explicit "load" calls:
> >
> > i.e.
> >
> > load
> > "#{RADIANT_ROOT}/vendor/extensions/page_attributes/app/models/page.rb"
> >
> >
> > Try putting an explicit load call to your events controller at the end
> > of your extension definition. (or at the end of some other controller in
> > radiant core).
> >
> > Yes I know this is a hack, but it's quick and dirty...
> >
> >
> > --
> > Posted via http://www.ruby-forum.com/.
> > _______________________________________________
> > Radiant mailing list
> > Post:   [email protected]
> > Search: http://radiantcms.org/mailing-list/search/
> > Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
> >
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to