Redirect_to outside of a module

Hello List,

If I have a module and the address looks like /
admin/:controller/:action and I want to create a link
to /:controller/:action, how do I have to specify that in a ‘link_to’
or in a ‘redirect :controller =>’ statement.
It doesn’t strip the /admin part from it, which makes sense, but I
need to go to a controller in the root.

TIA,

Gustavo

Good evening,

I’m putting up a web site for an applied mathematician. Consequently, I
need a graphics capability that will allow me to display some simple x-y
curves on a graph (that is, I’ll be supplied with a set of x and y
points and I have to plot a curve for these points).

I’d appreciate any advice…

Thank you,
Pat

Have a look at Geoffrey Grosenbach’s work at his blog http://
nubyonrails.com/ (in the Open Source Products category)

I haven’t had a play with any of them myself, but they look pretty cool.

On 15-jun-2006, at 2:13, Gustavo Beathyate wrote:

Hello List,

If I have a module and the address looks like /
admin/:controller/:action and I want to create a link
to /:controller/:action, how do I have to specify that in a
‘link_to’ or in a ‘redirect :controller =>’ statement.
It doesn’t strip the /admin part from it, which makes sense, but I
need to go to a controller in the root.

Prefix the controller name with a slash. This is confusing, I know.


Julian ‘Julik’ Tarkhanov
please send all personal mail to
me at julik.nl

Damien,
Thank you…I’ll be working this…I’ll let you know how I make out.
Cheers,
Pat