Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't parse (.:format) ? #7

Open
eet-nu opened this issue Jun 23, 2010 · 2 comments
Open

Doesn't parse (.:format) ? #7

eet-nu opened this issue Jun 23, 2010 · 2 comments

Comments

@eet-nu
Copy link

eet-nu commented Jun 23, 2010

Hi,

I have a route that looks like this:
match ":city_id/:venue_id/reviews(.:format)" => "reviews#index", :as => :city_venue_reviews

In my translation file (nl.yml), i've got this (short version):
nl:
named_routes_path:
":city_id/:venue_id/reviews(.:format)" : ":city_id/:venue_id/recensies(.:format)"

Output of rake routes:
city_venue_reviews /:city_id/:venue_id/reviews(.:format) {:controller=>"reviews", :action=>"index"}

Others paths translate just fine. Examples that work:
":city_id/:venue_id/reserve" : ":city_id/:venue_id/online-reserveren"
":city_id/:venue_id/order" : ":city_id/:venue_id/online-bestellen"

@eet-nu
Copy link
Author

eet-nu commented Jun 23, 2010

It's probably the "." that kills it, this works:
named_routes_path:
":city_id/:venue_id/reviews(":
":format)" : ":city_id/:venue_id/recensies(.:format)"

@kwi
Copy link
Owner

kwi commented Jun 25, 2010

Hi,

Yes it's strange, but the i18n gem works this way, it uses the '.' to split namespaces or scopes. So maybe I have to escape this '.', I will have a look at what I can do !

Thanks for notify me this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant