« Return to Thread: Difference between development/production environments from extensions point of view

Re: Difference between development/production environments from extensions point of view

by Sean Cribbs-2 :: Rate this Message:

Reply to Author | View in Thread

Sounds like your routes are messed up.  Does your route definition look
like this?

map.connect 'admin/posts/:action/:id', :controller => "admin/posts"

Make sure that your namespacing is correct.

Sean

13 wrote:

> Hi,
>
> I'm developing a new extension for radiant. I have created a
> controller which is a subclass of Admin::AbstractModelController like
> this:
>
> class PostsController < Admin::AbstractModelController
>   model_class Post
>   # ...
> end
>
> Posts controller is mapped to a new tab in the admin interface. When I
> click this tab list of items is displayed.
>
> In development environment everything is working as I want, but when I
> try to run the same extension in production environment I get
> following error:
>
> uninitialized constant Admin::PostsController
>
> I checked environment specific configuration files, but haven't found
> anything suspicions.
>
> Any help on how to fix this issue will be appreciated.
>
> Regards,
> Martins Grunskis
> _______________________________________________
> Radiant mailing list
> Post:   Radiant@...
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
>  

_______________________________________________
Radiant mailing list
Post:   Radiant@...
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

 « Return to Thread: Difference between development/production environments from extensions point of view