handle Link_to_remote in rails 5 -
i want move rails 2 5 link_to_remote
not supported rails 5:
<%= link_to_remote "add", :url=>{:action=>'fee_submission',:batch=>@batch,s_id=>@stud_id}
in controller:
def fee_submission # ..some code.. render :update |page| page.replace_html "fee", :partial => "fees" end
view _fees.html.erb:
<html> code </html>
how can above code implemented in rails 5?
probably can use remote: true in parameters option link_to here link more detail
<%= link_to "add", fee_submission_controller_path, remote: true %>
Comments
Post a Comment