I have an issue with a form sendind two parameters to a controller. I would like that the erb.js
template not be triggered if the update
of the object fails.
I have added return
at the end of my action but the view is still triggered.
Her is the bit of my controller which I think is responsible for actionning the view or not :
if @object.update(some_params)
...
respond_to do |f|
f.html {redirect_to some_path_here}
f.js
end
end
return