Giter Site home page Giter Site logo

Comments (10)

josevalim avatar josevalim commented on May 27, 2024

Which responers version are you using?

from responders.

holgersindbaek avatar holgersindbaek commented on May 27, 2024

Using responders (1.1.0)

from responders.

josevalim avatar josevalim commented on May 27, 2024

have you enabled the location responder? https://github.com/plataformatec/responders/blob/master/lib/responders/location_responder.rb

from responders.

holgersindbaek avatar holgersindbaek commented on May 27, 2024

How and where do I do that?

from responders.

josevalim avatar josevalim commented on May 27, 2024

Please check the installation instructions in the readme. there is a section called "configuring your own responder". You can also run rails g responders:install.

from responders.

holgersindbaek avatar holgersindbaek commented on May 27, 2024

I have read that section and run the installer, but I'm still not sure where to put the module you linked to. Should I put it in the application_responder.rb file?

from responders.

josevalim avatar josevalim commented on May 27, 2024

Yes! You should have a commented line in the application responder, just uncomment it!

from responders.

holgersindbaek avatar holgersindbaek commented on May 27, 2024

I uncommented the following line:

include Responders::CollectionResponder

But I still get the same error:

undefined method `model_name' for Proc:Class

When I run model_name in better errors console, I get the following:

>> model_name
!! #<NameError: undefined local variable or method `model_name' for #<SystemsController:0x007fc6489c6768>>

Any suggestions?

from responders.

josevalim avatar josevalim commented on May 27, 2024

You need to include the Responders::LocationResponder.

from responders.

holgersindbaek avatar holgersindbaek commented on May 27, 2024

Arh... sorry for the stupidity. Now it works. Thanks for the help.

from responders.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.