It's still breaking thing with Rails 4.0.x.
When using %{path} in the redirect, Rails will escape all the slashes in the path, so that the route will no more be recognized.
I found this to be a valid fix:
ruby
match '*path', to: redirect{|params| "/#{I18n.default_locale}/#{params[:path]}"}, via::all
It's still breaking thing with Rails 4.0.x.
When using
%{path}
in the redirect, Rails will escape all the slashes in thepath
, so that the route will no more be recognized.I found this to be a valid fix:
Thanks for this great tutorial! But, isn't it easier and more efficient to use rvm instead of rbenv?