what is the proper incantation to make this actually post asynchronously?
form_tag :controller => :magic, :action => :search, :method => post, :remote => true do
method=post and remote=true just get squashed on the end of the url instead of actually making it an ajax post.
The only way I found to do it is to wrap the url parameters in the url_for method.
form_tag url_for(:action => :create, :id => @artist.id), :remote => true do
However, if you need to the pass the method
parameter you might need to wrap that and the remote in parentheses.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With