logo       

R() in controllers: msg#00035

lang.ruby.camping.general

Subject: R() in controllers

Hello all,

I have an app mounted under /test via lighttpd fastcgi as indicated on
[1]. Here I use R(Foo, bar) in views to link to controller foo, this correctly
creates a /test/foo/bar link. However, when I use R() in some controller,
for example:

headers['Refresh'] = "60; url=#{R(Foo, bar)}"

The generated link is /foo/bar, which obviously links to something
non-existant. Can somebody affirm that R() in controllers do not
work correctly?

Regards,
Paul

--
Student @ Eindhoven | email:
paul-FGvqe4uplSY@xxxxxxxxxxxxxxxx
University of Technology, The Netherlands | JID:
paul-FGvqe4uplSY@xxxxxxxxxxxxxxxx
>>> Using the Power of Debian GNU/Linux <<< | GnuPG key ID: 0x50064181


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise