Getting the original url from a controller action method

Is there a simple way to get the original url which spawned a
controller action, including any query parameters?

Thanks in advance,
Don Mc


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

Hi Don –

On 16-Jul-06, at 9:56 PM, Don Mc wrote:

Is there a simple way to get the original url which spawned a
controller action, including any query parameters?

request.request_uri is what you’re looking for.

http://api.rubyonrails.org/classes/ActionController/
AbstractRequest.html#M000180

/Jeff


http://re.visioni.st
http://quotedprintable.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs