On Thu, Oct 29, 2009 at 12:01 PM, Rafael Roque
<[email protected]> wrote:
>
> Hi all,
> I successfully deployed my JRuby on Rails app on Tomcat
> In a jsp page I'd use ${pageContext.request.contextPath} to obtain my
> context path.How could I do this in a Ruby controller?

JRuby-Rack exposes a controller method called #servlet_request. So you
could try `servlet_request.context_path` inside a controller or view.

/Nick

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to