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
On 5/27/07, Tarscher [email protected] wrote:
Thanks
Stijn
Try setting a path_prefix to something like ‘:token’ on your routes.
–
Rick O.
http://lighthouseapp.com
http://weblog.techno-weenie.net
http://mephistoblog.com
Tarscher wrote:
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
suggest you that reference the Beast source code.