Fix for namespaced controllers

Fix for namespaced controllers like Admin::PagesController. Method controller_name is just "pages", controller_path is "admin/pages".