Skip to content

missing helper_method #6

Closed
Closed

Description

@bopbi

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

Activity

  1. carlosantoniodasilva commented on Apr 22, 2012

    @carlosantoniodasilva
    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.

  2. carlosantoniodasilva commented on Apr 24, 2012

    @carlosantoniodasilva
    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.

  3. bopbi commented on Apr 24, 2012

    @bopbi
    Author

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

  4. carlosantoniodasilva commented on Apr 24, 2012

    @carlosantoniodasilva
    Member

    No problem, thanks.

  5. added a commit that references this issue on Oct 23, 2014
    895ba1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions