daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Aug 14th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # from candidates#show
  2. # shows both a normal link_to and a remote link_to
  3.  
  4.   <div class="vote">
  5.     <%= link_to upvotes_path(:posting_id => @posting, :candidate_id => @candidate) do %>
  6.       <span id="vote-count"><%= @candidate.votes_for %></span>
  7.     <% end %>
  8.     <%= link_to 'Vote', upvotes_path(:posting_id => @posting, :candidate_id => @candidate), :id => "upvote", :class => "upvote", :remote => true %>
  9.   </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top