View Full Version : [FIXED] Route support is lacking in Touch 2.0

15 Mar 2012, 1:51 PM
When I want to create a route to a certain controller action, designer greatly limits me in the way I format my routes.

For example, I want:
myapp.com/:id to view an object, and
myapp.com/:id/edit to edit that object.

In designer I am limited in that params can only be at the end of a url, not in the middle of it. And I must use params because they are otherwise not passed to the function and can't be filtered by Route Conditions.

Is there any work around for this, or is it still a work in progress?

15 Mar 2012, 4:32 PM
If you are running the latest build, you simply specific the parameters in the url as you've shown above and the params list will be automatically be built for you.

I used the above myapp.com/:id/edit format without problem.

15 Mar 2012, 5:38 PM
Ah. I apologize. I have been on 298 because mixins broke in 311. I didn't realize there had been a fix.