Coder Social home page Coder Social logo

Comments (7)

ryanmk54 avatar ryanmk54 commented on July 2, 2024 1

Awesome! Thanks. It worked.

from rails-ranger.

victor-am avatar victor-am commented on July 2, 2024

Hey @ryanmk54 sorry for the delay (I got sick over the weekend 🤒)
This is indeed a problem, gonna work on this later this week 👍

But I guess it all started because you have a singular resource in current which isn't yet supported and being so using the list function seemed weird.

I guess this is one more reason to figure out some way to work with singular resources 🤔

from rails-ranger.

victor-am avatar victor-am commented on July 2, 2024

Sorry about the delay, it should be fixed on #30
Can you check if this solves your problem?

I will probably be merging it and releasing a new version next week 👍

from rails-ranger.

ryanmk54 avatar ryanmk54 commented on July 2, 2024

I don't think it fixed it. I still get the same url as before.

from rails-ranger.

victor-am avatar victor-am commented on July 2, 2024

Weird 🤔
Gonna check it out later.
Just to be sure though: did you use the version of the code inside the #30 pull request? 🤔

from rails-ranger.

ryanmk54 avatar ryanmk54 commented on July 2, 2024

I changed

package.json to

"rails-ranger": "victor-am/rails-ranger#vam-move-raw-requests-to-route-builder",

which resulted in the following yarn.lock entry after yarn install

rails-ranger@victor-am/rails-ranger#vam-move-raw-requests-to-route-builder:
  version "1.1.2"
  resolved "https://codeload.github.com/victor-am/rails-ranger/tar.gz/ec6f9f0dc09dbc3cd06b4e64e0395a49da88105b"
  dependencies:
    axios "^0.18.0"
    humps "^2.0.1"
    lodash "^4.17.10"
    qs "^6.5.0"

Using api.resource('sbm_employees').get('current') results in /merchandising/current

from rails-ranger.

victor-am avatar victor-am commented on July 2, 2024

So I investigated and my bad, I forgot to warn that just pointing to my PR would still load the old version because my PR didn't re-build the dist files 🤦‍♂

But I did the test with a personal project and seems to be working fine with the new code 😄

So I just published v1.1.3, try upgrading the library in your app and the problem should be fixed 🎉

from rails-ranger.

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.