app/views/manage/ballot_box/votes/index.html.erb in sunrise-votes-0.1.0 vs app/views/manage/ballot_box/votes/index.html.erb in sunrise-votes-0.1.1
- old
+ new
@@ -2,10 +2,10 @@
<div class="left-part">
<div class="content">
<div class="row-container">
<div class="white-row">
<div class="r-corn">
- <%= link_to parent.title, manage_ballot_box_votes_path(:"#{parent_type}_id" => parent.id), :class=>"dark-text" %>
+ <%= link_to @voteable.title, manage_ballot_box_votes_path( voteable_scope(@voteable) ), :class=>"dark-text" %>
</div>
</div>
</div>
<div id="votes" class="stage">
<%= render :partial=>"manage/ballot_box/votes/vote", :collection => @votes %>