Skip to content

Instantly share code, notes, and snippets.

@cowboycoded
Created April 11, 2011 16:18
Show Gist options
  • Save cowboycoded/913791 to your computer and use it in GitHub Desktop.
Save cowboycoded/913791 to your computer and use it in GitHub Desktop.
<%= link_to_remote "Vote Yes", :method=> :post, :update=>"widget#{widget.id}", :url => {:controller=>"widgets", :action => 'vote',:id=>widget,:vote=>true},
:complete => visual_effect(:highlight, "widget#{widget.id}", :duration=>1.5, :startcolor=>"#3aed11"), :html => {:class=>"yes-btn"} %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment