search for: companies_path

Displaying 1 result from an estimated 1 matches for "companies_path".

2007 Sep 06
3
routes, default_url_options and languages
...in every url_for calls. The language remains the same unless the params[:change_lg] is set. *In my application.rb, I''ve written this :* def default_url_options(options) { :lg => params[:change_lg].nil? ? session[:language] : params[:change_lg] } end *My problem :* When I use <?=companies_path ?> in my view, here is the URL that is generated : /companies?lg=en *What I would like to have instead :* /en/companies Has anyone an idea? Would be much appreciated. Thanks in advance, Thomas. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are su...