mercredi 24 juin 2015

rails 3 link_to put method not working

I am using link_to helper and trying to set the method as :put as show in the documentation. Link

however when i see the method is falling back to get, what am i doing wrong. Here is my syntax

<%= link_to "Original One","/users/#{user.id}?params=#{session[:user]}", :remote => true,:method => :put %>

Aucun commentaire:

Enregistrer un commentaire