Jump to content

The ultimate community for Ruby on Rails developers.


how can a view use the URL of current page without the locale part?

  • Please log in to reply
No replies to this topic

#1 starfry



  • Members
  • 12 posts

Posted 09 January 2014 - 02:50 PM

Hello, I have a view and I would like to present a hyperlink to the current page but witout the locale part. For example, if the page is "http://mydomain/es/myresource" where the locale is the "es" part, I want to find the URL "http://mydomain/myresource".


I've tried using url_for but without success. Is it possible to get the current page's URL without the locale bit ?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users