sam/harbor — Issue #32: Add controller helpers to auto-generate Locale-prefixed routes
Author: Bauerpauer
Created: 2012-03-02 21:24:11+00:00
State: open
Labels: upgrade

For example:

```ruby
class Photos < Harbor::Controller
localize "en_US", "es", "pt_BR"

index { ... }
end

def test_auto_generated_localized_routes
assert_controller_route_matches("GET", "/en_US/photos", Photos, :GET)
assert_controller_route_matches("GET", "/es/photos", Photos, :GET)
assert_controller_route_matches("GET", "/pt_BR/photos", Photos, :GET)
end
```