Created
February 14, 2012 06:16
-
-
Save hansonwu/1824219 to your computer and use it in GitHub Desktop.
link_to_remote -> link_to not working
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
link_to_remote I18n.t(:cancel), :url => {:action => 'disinvite_member', :id => @assignment.id, :membership => member.id}, | |
:html => {:title => I18n.t("student.cancel_invitation_title"), :class => "delete"}, | |
:confirm => I18n.t("student.cancel_invitation") | |
changing to | |
link_to (I18n.t(:cancel), | |
{:action => 'disinvite_member', :id => @assignment.id, :membership => member.id}, | |
:title => I18n.t("student.cancel_invitation_title"), | |
:class => "delete", | |
:confirm => I18n.t("student.cancel_invitation"), | |
:method => :post, | |
:remote => true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment