–
Arpit J.
Senior Undergraduate Student
Department of Computer Science & Engineering
Indian Institute of Technology, Kharagpur, India.
Ph. : +919733567185
Alt. email: arpit AT intinno.com
Web: http://www.arpitjain.com
I’m not 100% sure, but I think what you want is request.path or
request.url
Also try request.relative_url_root. But use with caution, because all
the URIs
inside your application should be subject to routes.rb. You should
expect to
change that, and everything will work with the new routes.
If you do try:
raise request.inspect
It will tell you everything thats inside request.
Sometimes .inspect is so obliging, and sometimes not! For a different
view, use
raise public_methods.sort.inspect
–
Phlip
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.