On Wed, Mar 4, 2009 at 8:46 PM, Peter Vandenabeele > request.uri etc (that variable is available in the views) > > More details for request.uri and (lots of) friends: > > http://api.rubyonrails.org/classes/ActionController/Request.html#M000694
Sorry, I was mistaken, request.uri does not exist What does exist is * request.request_uri * request.url The results of a small test: request.request_uri = /home request.url = http://localhost:3000/home These 2 attributes are available both in the controller and in the views. HTH, Peter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

