v0.1.4
Changes
- Now we properly submit the right HTTP request type when using
tg-remote
. E.g., when usingPATCH
, we add_method=PATCH
to the payload of the form if not already present. Rails interprets these and considers them to be the true HTTP method type, even if the actual HTTP method submitted by the browser is aPOST
. Prior releases would have seen incorrect behaviour when trying to usetg-remote
with methods other thanPOST
tg-remote-norefresh
attribute (no value required) on a node withtg-remote
will now preventPage.refresh
from firing entirely. This is useful for situations where you are handling state entirely in the client and want to perform a method and have 0 side effects.
from #51