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

missing helper_method #6

Closed
bopbi opened this issue Apr 22, 2012 · 4 comments
Closed

missing helper_method #6

bopbi opened this issue Apr 22, 2012 · 4 comments

Comments

@bopbi
Copy link

bopbi commented Apr 22, 2012

when i try to integrate rails-api with devise, it show an error like this

/Users/bobbyadiprabowo/.rvm/gems/ruby-1.9.2-p180@kulinr-rails-api/gems/devise-2.0.4/lib/devise/controllers/helpers.rb:8:in block in <module:Helpers>': undefined methodhelper_method' for ActionController::API:Class (NoMethodError)

maybe helper_method is not included in ActionController::API:Class

@carlosantoniodasilva
Copy link
Member

@tigaenamb you're right, helper_method is not included in API, and it's because we don't need it as we're not using helpers and rendering templates. I think this should be handled by devise, to not call helper_method if it does not respond to it. Another solution would be to have a stub implementation of helper_method just to ignore such errors.

Thanks for reporting.

@carlosantoniodasilva
Copy link
Member

@tigaenamb I've just merged an addition to the Compatibility module that adds a stub helper_method, should work fine for now. Could you give it a try bundling from master? Thanks.

@bopbi
Copy link
Author

bopbi commented Apr 24, 2012

ok, i try it later, sorry i am a little busy right now

@carlosantoniodasilva
Copy link
Member

No problem, thanks.

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

2 participants