I have added in my blog a controller called test_it to show some graphs
for OFC. The routes to reach it were simply like /test_it/index, that is
old routing style.
After the migration to Typo 5.2 and Rails 2.2 these routes were no
longer working. So I added these routes :
map.connect ‘:controller/:action’
map.connect ‘:controller/:action/:id.:format’
But these broke the tag route (see this post :
Small troubles with tags links - Typo - Ruby-Forum)
Is there a simple way to activate this route just for the test_it
controller ?
The answer is probably simple but I don’t know much about the routing
system.
Thx
H
Harry S. a écrit :
Is there a simple way to activate this route just for the test_it
controller ?
The answer is probably simple but I don’t know much about the routing
system.
In typo route there are a route with *from. this route get all route and
use to redirectcontroller. Create your route before this route and named
it.
Cyril M. wrote:
Harry S. a �crit :
Is there a simple way to activate this route just for the test_it
controller ?
The answer is probably simple but I don’t know much about the routing
system.
In typo route there are a route with *from. this route get all route and
use to redirectcontroller. Create your route before this route and named
it.
OK. I am afraid of abusing, but can you remind me how to form a named
route
Harry S. a écrit :
In typo route there are a route with *from. this route get all route and
use to redirectcontroller. Create your route before this route and named
it.
OK. I am afraid of abusing, but can you remind me how to form a named
route
map.test_it ‘/test_it’, :controller => ‘Tests’, :action => ‘test’
test_it_url