Comments (7)
Awesome! Thanks. It worked.
from rails-ranger.
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.
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.
I don't think it fixed it. I still get the same url as before.
from rails-ranger.
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.
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.
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)
- Weird behavior with update params HOT 1
- Resource name isn't getting converted from camelCase to snake_case HOT 1
- Wrong parsing when passing nested objects
- Identify error messages as rails ranger's errors HOT 1
- Support for inflections
- Interchangeable API adapters
- API calls fail for Rails apps that respond to HTML and JSON HOT 4
- Parameter substitution only seems to work for one parameter HOT 5
- Deprecate the `transformData` option in favor of a better name
- Support for custom actions (on member and collection)
- Integrate with Rails authentication libraries
- this.client is undefined in readme example HOT 1
- Support for singular resources
- Recommended way to send FormData HOT 3
- Is request cancellation supported HOT 3
- Upgrade axios dependency to 0.21.1 HOT 3
- Fix the documentation HOT 1
- Reduce build size
- Option for automatic conversion of the json response to camel-case
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rails-ranger.