Justin Collins
11/1/2007 8:43:00 PM
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