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

Helpers routes #3

Open
millisami opened this issue Sep 13, 2011 · 3 comments
Open

Helpers routes #3

millisami opened this issue Sep 13, 2011 · 3 comments

Comments

@millisami
Copy link

I've an application helper file:

module ApplicationHelper
  def current_balance
    ...
  end
end

And now when I include this in other controllers like:

class WorkersController < ApplicationController
  include ApplicationHelper
   ...
end

The traceroute shows that workers#current_balance as unused route.
And I've that application_helper included pretty much in every controller, the traceroute shows it for all controllers?

@anthonybatchelor-examtime

Me too

@DamirSvrtan
Copy link
Contributor

Is this only a helper method and not a real action from the controller? If so, please do follow a best practice and make it private, and it won't be an unused route.

@MaximilianoGarciaRoe
Copy link

Hi I made a PR with solution this issue
#44

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

4 participants