In my first Node project Express/Express-resource libraries are used and Jade for templating.
According to docs default mappings are generated. Among them we can find:
PUT /forums/:forum -> update
Yet, I do not see easy way to submit values.
How to submit creation/update?
Jade form can be created easily and body parser as well, but how to submit this form? Please note that express-resource defines PUT method (not POST).
From the Express guide:
So:
And in your form:
Update: As I understand the new comments from the asker, nrph wants a way to submit a form with the
PUTmethod, using ajax. Here is a solution using jQuery: