Actions
Usage
def response
action action_config do
button text: 'Delete'
end
end
def action_config
{
path: product_path(product),
method: :delete,
params: {
foo: :bar
},
sucess: {
transition: {
follow_response: true
}
},
failure: {
emit: 'deletion-failed'
}
}
endComplete documentation
Last updated
Was this helpful?