I fixed using other way, but you are right, I have helper :all, thanks

On Mon, Jun 1, 2009 at 1:37 AM, Sergio Cambra .:: entreCables S.L. ::. <
[email protected]> wrote:

> On Domingo, 31 de Mayo de 2009 00:19:39 LFung escribió:
>
> > Hi,
> >
> > I have an app using two namespace, the routes.rb is:
> >
> > map.namespace :admin do |admin|
> > admin.resources :products, :active_scaffold => true, :path_prefix =>
> > '/:locale/admin'
> > admin.resources :stores, :active_scaffold => true, :path_prefix =>
> > '/:locale/admin'
> > end
> >
> > map.namespace :superadmin do |superadmin|
> > superadmin.resources :products, :active_scaffold =>
> > true, :path_prefix => '/:locale/superadmin'
> > superadmin.resources :stores, :active_scaffold => true, :path_prefix
> > => '/:locale/superadmin'
> > end
> >
> > Following the Rails folder organization, each controller/helper for
> > each namespace have their own folder
> >
> > controllers
> > admin
> > products_controller.rb
> > stores_controller.rb
> > superadmin
> > products_controller.rb
> > stores_controller.rb
> >
> > helpers
> > admin
> > products_helper.rb
> > stores_helper.rb
> > superadmin
> > products_helper.rb
> > stores_helper.rb
> >
> > ...
> > somethig similiar for views
> >
> >
> > As each store have many products, I define a
> > options_for_association_conditions for each helper, to filter the
> > products of each store, the problem is that if I call admin/stores the
> > helper used is for superadmi.
> >
> > I have been searching hours for some typing error, and everything is
> > right. Is there any to instruct AS to use the specific helper in the
> > controller ?
> >
> > This is a very strange behavior, I don't know what else to do ?
>
>
> Probably you have helper :all in application_controller
>
>
> >
> > TIA
> >
> > LFung
> >
>
>
> --
> Sergio Cambra .:: entreCables S.L. ::.
> Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
> T) 902 021 404 F) 976 52 98 07 E) [email protected]
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to