{"issue":{"title":"Routing messed up when controller's action has underscore","user":{"login":"mabounassif","id":573530,"url":"https://api.github.com/users/mabounassif","gravatar_id":"9625df0ad15987818a0e7fed1961c36c","avatar_url":"https://secure.gravatar.com/avatar/9625df0ad15987818a0e7fed1961c36c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-24T03:47:17Z","milestone":null,"labels":[],"state":"closed","updated_at":"2011-12-24T08:11:29Z","id":2651626,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":"2011-12-24T04:01:24Z","html_url":"https://github.com/rails/rails/issues/4158","body":"I have the following in my route.rb file:\r\n\r\n``` ruby\r\nscope(:path => 'refinery', :as => 'refinery_admin', :module => 'refinery/admin') do\r\n    scope(:path => 'blog', :as => 'blog', :module => 'blog') do\r\n      resources :settings do\r\n        collection do\r\n          get :notification_recipients\r\n          post :notification_recipients\r\n          get :moderation\r\n          get :comments\r\n          get :teasers\r\n        end\r\n      end\r\n    end\r\nend\r\n```\r\n\r\nand my controller has:\r\n\r\n``` ruby\r\nmodule ::Refinery\r\n  module Admin\r\n    module Blog\r\n      class SettingsController < ::Refinery::AdminController\r\n        def notification_recipients\r\n           # stuff\r\n        end\r\n     end\r\n   end \r\n end\r\nend\r\n```\r\n\r\nI would get the following error:\r\n`No route matches {:controller=>\"refinery/admin/blog/settings\", :action=>\"notification_recipients\"}`\r\n\r\nIf I removed the underscore things are back to normal.","number":4158,"url":"https://api.github.com/repos/rails/rails/issues/4158","comments":2,"assignee":null},"comment":{"user":{"login":"pixeltrix","id":6321,"url":"https://api.github.com/users/pixeltrix","gravatar_id":"b14001f2b40640dd6cb63f0e8f1f4869","avatar_url":"https://secure.gravatar.com/avatar/b14001f2b40640dd6cb63f0e8f1f4869?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-24T08:11:28Z","updated_at":"2011-12-24T08:11:28Z","id":3266978,"body":"Care to enlighten us? :-)","url":"https://api.github.com/repos/rails/rails/issues/comments/3266978"},"action":"created"}