{"action":"created","issue":{"url":"https://api.github.com/repos/svenfuchs/routing-filter/issues/55","labels_url":"https://api.github.com/repos/svenfuchs/routing-filter/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/svenfuchs/routing-filter/issues/55/comments","events_url":"https://api.github.com/repos/svenfuchs/routing-filter/issues/55/events","html_url":"https://github.com/svenfuchs/routing-filter/issues/55","id":73018126,"number":55,"title":"rails4 undefined local variable or method map","user":{"login":"bodaonline","id":8940149,"avatar_url":"https://avatars.githubusercontent.com/u/8940149?v=3","gravatar_id":"","url":"https://api.github.com/users/bodaonline","html_url":"https://github.com/bodaonline","followers_url":"https://api.github.com/users/bodaonline/followers","following_url":"https://api.github.com/users/bodaonline/following{/other_user}","gists_url":"https://api.github.com/users/bodaonline/gists{/gist_id}","starred_url":"https://api.github.com/users/bodaonline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodaonline/subscriptions","organizations_url":"https://api.github.com/users/bodaonline/orgs","repos_url":"https://api.github.com/users/bodaonline/repos","events_url":"https://api.github.com/users/bodaonline/events{/privacy}","received_events_url":"https://api.github.com/users/bodaonline/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-04T13:24:12Z","updated_at":"2015-05-04T13:32:26Z","closed_at":null,"body":"Hi All,\r\n\r\nI 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:\r\n\r\n/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)\r\n\r\nI have this in routes.rb:\r\n\r\n    Rails.application.routes.draw do\r\n      map.filter 'locale'\r\n      root 'static_pages#home'\r\n      resources :categories\r\n      resources :users, only: [:index, :show]\r\n      resources :items\r\n      devise_for :users\r\n      get 'users/index'\r\n      get 'users/show'\r\n      resources :addresses do\r\n         collection { post :import }\r\n      end\r\n    end\r\n\r\nI have set up routing.rb, application-controller.rb, environment.rb as per described in the Wiki."},"comment":{"url":"https://api.github.com/repos/svenfuchs/routing-filter/issues/comments/98705140","html_url":"https://github.com/svenfuchs/routing-filter/issues/55#issuecomment-98705140","issue_url":"https://api.github.com/repos/svenfuchs/routing-filter/issues/55","id":98705140,"user":{"login":"simi","id":193936,"avatar_url":"https://avatars.githubusercontent.com/u/193936?v=3","gravatar_id":"","url":"https://api.github.com/users/simi","html_url":"https://github.com/simi","followers_url":"https://api.github.com/users/simi/followers","following_url":"https://api.github.com/users/simi/following{/other_user}","gists_url":"https://api.github.com/users/simi/gists{/gist_id}","starred_url":"https://api.github.com/users/simi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simi/subscriptions","organizations_url":"https://api.github.com/users/simi/orgs","repos_url":"https://api.github.com/users/simi/repos","events_url":"https://api.github.com/users/simi/events{/privacy}","received_events_url":"https://api.github.com/users/simi/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T13:32:26Z","updated_at":"2015-05-04T13:32:26Z","body":"What version are you using?"}}