Rails: User friendly locale specific URLs

Localization made easier
# In routes.rb
scope "/:locale" do
  resources :books
end

# Now books can be accessed via URL localhost:3000/en/books
# params[:locale] = 'en'