aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-07-27 23:50:20 +0200
committerTeddy Wing2017-07-27 23:50:20 +0200
commit2efe1b4e0267db2874bc2d142a9ef85da1d40c56 (patch)
treef8720ee709b9991c98f659e61ee6162e7f4ba41f
parent3f343b6f150046cf1587552c134331bf359cb6f9 (diff)
downloadDeux-Scoops-Rails-Tutorial-2efe1b4e0267db2874bc2d142a9ef85da1d40c56.tar.bz2
002-Ice-cream.md: Use a readable variable nameHEADmaster
In the view example, I had used a super short block variable name, but now that I think about it, it should really be something readable.
-rw-r--r--002-Ice-cream.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/002-Ice-cream.md b/002-Ice-cream.md
index 3a6c47f..d2283e4 100644
--- a/002-Ice-cream.md
+++ b/002-Ice-cream.md
@@ -44,9 +44,9 @@ Ice cream
<% if @ice_creams.present? %>
<ul>
- <% @ice_creams.each do |ic| %>
+ <% @ice_creams.each do |ice_cream| %>
<li>
- <%= ic.flavor %>, <%= ic.manufacturer %>
+ <%= ice_cream.flavor %>, <%= ice_cream.manufacturer %>
</li>
<% end %>
</ul>