Displaying 2 results from an estimated 2 matches for "current_product".
2007 Jan 27
0
Problems with implementation of dynamically updating scores
..., why?
else
redirect_to_index("一人只有一票唷") --> never worked, why?
end
end
--------------------------------------------------------------------------------
In the view, I have a div displaying the score.
<% if product ==@p %>
<div id="current_product">
<%= render(:partial => "score", :object => @p) %>
<% else %>
<div class="score">
<%= product.popular_score %>
<% end %> </div>
-------------------------------------------------------------------------------...
2007 Jan 29
6
RJS problem
..., why?
else
redirect_to_index("一人只有一票唷") --> never worked, why?
end
end
--------------------------------------------------------------------------------
In the view, I have a div displaying the score.
<% if product ==@p %>
<div id="current_product">
<%= render(:partial => "score", :object => @p) %>
<% else %>
<div class="score">
<%= product.popular_score %>
<% end %> </div>
-------------------------------------------------------------------------------...