From: Justin Collins Date: 2007-11-02T05:42:59+09:00 Subject: Re: Eruby - How to get my grubby mittens on the URL? Casimir P wrote: > Hi all! 8) > > Suppose I have some ruby code in a .rhtml -file, which is processed by > eruby. > > How can I get the url string of the page? (so I can chop it up). > > Whats a good place for reference on this? > > Csmr > I think this depends somewhat on your environment (it's different if you are running from the command line versus on a web server, for example), but try adding puts ENV.inspect in your .rhtml file and that should help you find what you need. -Justin