0
I’m leaving for Rails 5 and I can’t find a replacement for the link_to_remote
which has been discontinued.
In my old code, I have a "Register" link, which when clicked, makes a request to the "Register" action and renders the return in the div above "form".
Follow the basic elements of my view:
<%= javascript_include_tag :defaults %>
<div id="form">
</div>
<%= link_to_remote "Cadastro", :update => "form",
:url => { :action => "register" } %>