You can get it in Camping 1.9.x by doing @request.url ? it gives you a  
String. If you want a URI object do URI.parse(@request.url) and then  
you can change the components easier than using a String#gsub. :)
If you''re using camping 1.5, you probably have to scavenge the various
parts of the url and build the whole thing up yourself from bits like  
the hostname and the path. Depending on your web server, you may also  
be able to use REQUEST_URL environment variable inside the @env  
hash... but I emphasise this is a nonstandard CGI variable, and odds  
are it wont be available. If you do make use of it, it will severely  
limit the portability of your application.
On 06/07/2009, at 12:29 AM, in-seok hwang wrote:
> How can I know the current web page address in some controller?
>
> plz teach me.
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list