Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #45 from widescape/include_default_locale_document…

…ation#23

Enhanced documentation to describe include_default_locale feature
  • Loading branch information...
commit 14761c10b8b5d91fd563dadf6271cfc8fd02935e 2 parents bed56b5 + e487aab
@simi simi authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 README.markdown
View
10 README.markdown
@@ -61,6 +61,16 @@ Rails.application.routes.draw do
end
```
+The locale filter may be configured to not include the default locale:
+
+ # in config/initializers/routing_filter.rb
+ # Do not include default locale in generated URLs
+ RoutingFilter::Locale.include_default_locale = false
+
+ # Then if the default locale is :de
+ # products_path(:locale => 'de') => /products
+ # products_path(:locale => 'en') => /en/products
+
### Testing
RoutingFilter should not be enabled in functional tests by default since the Rails router gets
Please sign in to comment.
Something went wrong with that request. Please try again.