Permalink
Browse files

ensure to always refer to the current stamp on stamp show page - clos…

…es #14
  • Loading branch information...
1 parent 26f0f6a commit b2c3a42f75594773879281222ee76c3aa7112b9b @ryanb committed Sep 12, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/views/stamps/show.html.erb
@@ -43,16 +43,16 @@
</p>
<% else %>
<p>
- Stamp by <%=h stamp.user.display_name if stamp.user %>
+ Stamp by <%=h @stamp.user.display_name if @stamp.user %>
<% if logged_in? %>
- | <%= link_to "Watch this stamp", favorites_url(:stamp_id => stamp.id), :method => :post %>
+ | <%= link_to "Watch this stamp", favorites_url(:stamp_id => @stamp.id), :method => :post %>
<% end %>
</p>
<% end %>
<div id="score">
<%= render :partial => "score", :locals => { :stamp => @stamp } %>
</div>
- <% if stamp_owner? && stamp.score.zero? %>
+ <% if stamp_owner? && @stamp.score.zero? %>
<%= image_tag "instructions/instruction1.gif", :size => "135x59", :id => "instructions" %>
<% end %>
</div>

0 comments on commit b2c3a42

Please sign in to comment.