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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -