-
Notifications
You must be signed in to change notification settings - Fork 35
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
Angular update method not working #9
Comments
Another way to get this to work is using the my.resource from this article: http://kirkbushell.me/angular-js-using-ng-resource-in-a-more-restful-manner/ That is IMHO a better way since the API is then correct and it works seamlessly. |
completely agree! On Mon, Sep 16, 2013 at 2:54 PM, Bjarte S. Karlsen <[email protected]
|
I am just playing around with autosource atm. Will probably use it in some free time projects for now. |
cool! On Mon, Sep 16, 2013 at 3:09 PM, Bjarte S. Karlsen <[email protected]
|
Nice! Keep up the good work. |
Come to think of it, should we not modify the example in the README so that it mentions this? I can try to send a Pull Request later today if you do not have time to fix it. |
fixed README to use my.resources that will support PUT updates #9
Angular's ngResources uses a POST request to run the update operation but that is not supported by the routes in AutoSourceController.
PUT is the correct method to use here IIRC, but it would be nice if POST with an id was supported as well since it would make it easer to use the framework with angular.
Something like:
case ("POST", Id(id)) => withId(id, update)
in AutoSourceController
The text was updated successfully, but these errors were encountered: