Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8046331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:45:26+00:00 2026-06-05T05:45:26+00:00

I want my doorkeeper views to use the application layout: https://github.com/applicake/doorkeeper/wiki/Customizing-views This contains routes

  • 0

I want my doorkeeper views to use the application layout:

https://github.com/applicake/doorkeeper/wiki/Customizing-views

This contains routes and helper methods from the main application.

For the routes, I can prefix main_app to the path but for the helper method I get the following error:

undefined method `is_active?' for #<ActionDispatch::Routing::RoutesProxy:0xade808c>

<li class="<%= main_app.is_active?("high_voltage/pages", "api") %>"><%= link_to t('developers'), page_path('api') %></li>

Why is this? The helper is in app/helpers/application_helper.rb

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T05:45:27+00:00Added an answer on June 5, 2026 at 5:45 am

    If you generated the views and they are placed in app/views/doorkeeper/** then the engine still uses doorkeeper controllers.

    To fix this, you have to include your helper(s) into the engine’s ApplicationController. Let’s say you have something like this:

    app/helpers/application_helper.rb

    module ApplicationHelper
      def my_helper
        "hello"
      end
    end
    

    app/views/doorkeeper/applications/index.html.erb

    <p>
      <%= my_helper %>
    </p>
    

    This won’t work until you include your application helpers into doorkeeper controllers. So in config/application.rb:

    class YourApp::Application < Rails::Application
      config.to_prepare do
        # include only the ApplicationHelper module
        Doorkeeper::ApplicationController.helper ApplicationHelper
    
        # include all helpers from your application
        Doorkeeper::ApplicationController.helper YourApp::Application.helpers
      end
    end
    

    this is similar configuration when you want to customize the layout.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Want to use signal when follow() function called in UserProfile. I've written signal which
Want to play a file that on path like this /var/spool/sound/dog.wav present on server.
Want to verify that my understanding of how this works. Have a C++ Class
Want to check that my site map contains a page. Could just iterate through
Want to create an alarm application, that will play a music file at a
I want to use the same controller for browser users (form-based auth) and OAuth
want to share a link from my application in windows phone 7. Any one
Want to just confirm on following. Please verify if this is correct: 1. As
Want to pause the multiple views from updating when Pause button is pressed In
Want to write a typing test application (GUI, windows). Is simple terms. app shows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.