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 ?
TIA
LFung
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---