2012-08-29 13 views

cevap

15

Sadece ilk parametreyi atlayın, geri kalanları parens içinde sarın ve ardından do/end'i ekleyin.

<%= link_to(user_user_relationship_path(id:@relationship.id), remote: true, id: "follow_#{@user.id}", class:"btn btn-small btn-danger", method: :delete) do %> 
    <!-- your button html here --> 
<% end %> 
İlgili konular