-
- Downloads
Let `oauth/applications#index` handle the `profiles#applications` route
Previously we were doing all of kinds of code gymnastics and flash abuse in order to work with a Doorkeeper controller but have it _appear_ at the `/profile/applications` path. Fortunately we can just tell Rails to use a different controller to handle that route, and we get the best of both worlds.
Showing
- app/controllers/oauth/applications_controller.rb 14 additions, 14 deletionsapp/controllers/oauth/applications_controller.rb
- app/controllers/profiles_controller.rb 0 additions, 8 deletionsapp/controllers/profiles_controller.rb
- app/views/doorkeeper/applications/index.html.haml 81 additions, 17 deletionsapp/views/doorkeeper/applications/index.html.haml
- app/views/layouts/nav/_profile.html.haml 1 addition, 1 deletionapp/views/layouts/nav/_profile.html.haml
- app/views/profiles/applications.html.haml 0 additions, 83 deletionsapp/views/profiles/applications.html.haml
- config/routes.rb 1 addition, 1 deletionconfig/routes.rb
Please register or sign in to comment