2009/12/6 Paulo Coutinho pa...@prsolucoes.com:
Hi.
Your solution dont solve.
But i try it:
map.with_options(:namespace = admin) do |admin|
admin.clients_index 'admin/clients', :controller = 'clients' #im on
admin so dont need redirect to admin/clients only clients
end
And to the
Hi.
But my system is an ERP, i have more than 20 controllers.
I have to make it for all controllers and actions?
My actions is in portuguese, not edit but alterar... i put here an
example of my structure.
Dont have other method? A route that redirect all with admin/ to
But my system is an ERP, i have more than 20 controllers.
I have to make it for all controllers and actions?
I have an application with something like 20 controllers and make all
routes explicit for each controller.
My actions is in portuguese, not edit but alterar... i put here an
example
Hum. Ok.
The last solution doesn't work, so i think that i'll have to make a route to
each controller :(
Do you make one route by controller? Can you post an example about how i can
redirect all from admin/clients to correct controller/action/id ?
2009/12/7 Kristian Hellquist
I make a solution that work fine to me, but i have to create one for each
controller:
# clients
map.admin_clients '/admin/clients/:action/:id', :controller =
'/admin/clients'
...
2009/12/7 Paulo Coutinho pa...@prsolucoes.com
Hum. Ok.
The last solution doesn't work, so i think that i'll
Hi.
I have some apps that i have admin areas to the clients manager the app.
This admin is a directory on my controllers path, like this:
my_site
-- app
controllers
--admin
And my controllers in admin, i use the correct namespace(example for
clients_controller):
class
But local and on my server(passenger) it is ok, and function normal, but on
JRUBY i get an error because it is thinking that admin is a controller and
clients is a action of admin.
My controllers is not restfull, so what i have to do, to correct it? Or what
the best method to make the admin?
7 matches
Mail list logo