locale filter breaks url generation
Closed this issue · 4 comments
ZenCocoon commented
Hi Sven,
Looks like the URL generation helpers are broken as they always requires one parameter :
Error can be found at : http://gist.github.com/571591
I've tested with routing_filter gem 0.1.6, rails 2.3.9 and ruby 1.8.7/1.9.2 rc_2
I've setup a minimal app to show off the issue, please check:
http://github.com/ZenCocoon/test_routing_filter
Thanks for your great work,
glongman commented
yep, I see this too
samlown commented
Adding the :locale to the default url options in your application controller gets around this problem:
def default_url_options(options = {})
{ :locale => I18n.locale }
end
Also make sure its a public method, i.e. not below a protected or private.
sam
ZenCocoon commented
That works fine in my case and with the test app. Thanks for the bug fix.