Skip to content

Commit

Permalink
自由課題, loop, -%>
Browse files Browse the repository at this point in the history
  • Loading branch information
kyanny committed Jan 19, 2010
1 parent edbf74e commit 20eae33
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demo/app/controllers/say_controller.rb
Expand Up @@ -5,4 +5,8 @@ def hello

def goodbye
end

def loop

end
end
19 changes: 19 additions & 0 deletions demo/app/views/say/loop.html.erb
@@ -0,0 +1,19 @@
<html>
<head>
<title>Loop, loop, loop...</title>
</head>
<body>
<ul>
<% 3.times do |count| %>
<li><%= count %> times...</li>
<% end %>
<li>finish!</li>
</ul>
<ul>
<% 3.times do |count| -%>
<li><%= count %> counts...</li>
<% end -%>
<li>finish!</li>
</ul>
</body>
</html>

0 comments on commit 20eae33

Please sign in to comment.