RailsCasts Pro episodes are now free!

Learn more or hide this

marzapower's Profile

GitHub User: marzapower

Site: http://www.marzapower.com

Comments by

Avatar

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
Avatar

Thanks for this great tutorial! But, isn't it easier and more efficient to use rvm instead of rbenv?