jeudi 16 juillet 2015

link_to append parameter using javascript

I know that in rails 2.3 there is :with option available with link_to form helper. The use of it is basically the append parameters to URL. But in rails 3.1 its not working, how can i append more parameters to path using link_to in rails 3.1. Here is how it worked in rails 2.3

<%= link_to "Edit", {:url => error_prone_teacher_students_path(@store), :remote => true, :with => "'id='+$F('id')", :method => :get}, :id => "load", :style=>"display:none;" %>

Aucun commentaire:

Enregistrer un commentaire