Skip to content

v0.1.4

Compare
Choose a tag to compare
@qq99 qq99 released this 15 Dec 16:01
· 245 commits to master since this release

Changes

  • Now we properly submit the right HTTP request type when using tg-remote. E.g., when using PATCH, 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 a POST. Prior releases would have seen incorrect behaviour when trying to use tg-remote with methods other than POST
  • tg-remote-norefresh attribute (no value required) on a node with tg-remote will now prevent Page.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