REST and special URLs

Hi all,

I want to start using some REST in my design. I have build a restfull controller and try to link to it in my view. The problem is that my URLs all have something extra added (a session value). When I use the restfull link (eg: new_user_url) it links to site.com/user/new but it should actualy be site.com/added_string/user/new .

How can I add that string (from session) to the url?

Thanks Stijn

Try setting a path_prefix to something like ':token' on your routes.