Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing problem when controllers are included in a module #31

Open
itang opened this issue Jul 12, 2015 · 0 comments
Open

Routing problem when controllers are included in a module #31

itang opened this issue Jul 12, 2015 · 0 comments

Comments

@itang
Copy link

itang commented Jul 12, 2015

in this case:

module SomeModule
   class DictController < Base::Controller
     ...
   end
end


include SomeModule

...
get "/dict_index", "dict#index"   =>  Route.new("dict_index", "DictController",  "index")
register DictController  =>         @controllers_instances["SomeModule::DictController"] = SomeModule::DictController
...

When process named route, the "controller key" can't match

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant