Skip to content

Routing problem when controllers are included in a module #31

Open
@itang

Description

@itang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions