You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kyle Lamy edited this page Aug 27, 2015
·
5 revisions
To customize the views that doorkeeper uses, you have to generate them into your app.
rails generate doorkeeper:views
This will copy all the views to app/views/doorkeeper.
Doorkeeper looks first for its views in that subfolder, and if not found it will fall back to its default.
Overriding layouts
To use your own layouts you can override each layout separately:
In config/application.rb, add:
config.to_preparedo# Only Applications listDoorkeeper::ApplicationsController.layout"my_layout"# Only Authorization endpointDoorkeeper::AuthorizationsController.layout"my_layout"# Only Authorized ApplicationsDoorkeeper::AuthorizedApplicationsController.layout"my_layout"end
Using helpers
Since doorkeeper is an isolated engine, you'll have to prefix main_app in all routes and helpers that belong to your application:
If you need access to your ApplicationHelper methods, you can include them in config/application.rb:
config.to_preparedo# include only the ApplicationHelper moduleDoorkeeper::ApplicationController.helperApplicationHelper# include all helpers from your applicationDoorkeeper::ApplicationController.helperYourApp::Application.helpersend