Created
November 20, 2016 12:37
-
-
Save happycze/f36637b9e435b626b88f71cb9d023eeb to your computer and use it in GitHub Desktop.
Padrino contrib - Route containing :lang symbol is not resolved correctly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module NamedParameters | |
class App < Padrino::Application | |
register Padrino::Mailer | |
register Padrino::Helpers | |
enable :sessions | |
# Autolocale | |
register Padrino::Contrib::AutoLocale | |
set :locales, [:en] | |
set :locale_exclusive_paths, ["/stylesheets","/javascripts","/sessions","/auth"] | |
get "/edit/:lang/:id" do | |
params.to_s | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment