visit
s, Superglue uses the response's content-location
to create the key used to store your props.create
or update
, the returned response does not necessarily reflect the url the user should see.posts/new
and they make a POST request to posts/
, we may decide to render posts/new
for any errors you'd like to show.create
and update
methods. If you used the generators, this is done for you.props
of your connected component:data-sg-visit
, all flash in Superglue's redux state will be cleared before the request.data-sg-remote
, the recieved flash will be merged with the current page's flash.redirect_back_with_props_at
props_at
parameter as part of the redirect location
. This helper has the same method signature as Rails own redirect_back
.form_with
that can be used to passed to React. Has the same method signature as form_with