Open bodaonline opened 9 years ago
What version are you using?
0.5.0
That wiki page refers to rails 2 documentation, there's no need to use map.filter
you should replace it in your code with:
Rails.application.routes.draw do
# map.filter 'locale'
filter :locale
# ...
end
Ahh, I missed that @fabn. @bodaonline does this work for you?
Hi @fabn and @simi ! Thanks for your reply but no luck. I guess if that wiki page is for rails2 there are other mines in it. Know of any uptodate guide? TIA!
Hi All,
I am new to Rails. I tried to setup routing-filter with basic settings as per seen in the wiki/Localize_filter but go this error when starting the server:
/home/ubuntu/workspace/stuff/config/routes.rb:18:in
block in <top (required)>': undefined local variable or method
map' for #ActionDispatch::Routing::Mapper:0x0000000852e2e0 (NameError)I have this in routes.rb:
I have set up routing.rb, application-controller.rb, environment.rb as per described in the Wiki.