Don Mc
2006-Jul-17 01:56 UTC
[Rails] 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 -- Posted via http://www.ruby-forum.com/.
Jeffrey Hardy
2006-Jul-17 02:42 UTC
[Rails] Getting the original url from a controller action method
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
Pete Wright
2006-Jul-17 21:30 UTC
[Rails] Getting the original url from a controller action method
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060717/becab1bd/PGP-0002.bin