Skip to content

Commit

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

end

def files
@files = Dir.glob('*')
end
end
12 changes: 12 additions & 0 deletions demo/app/views/say/files.html.erb
@@ -0,0 +1,12 @@
<html>
<head>
<title>File list!</title>
</head>
<body>
<ul>
<% for file in @files %>
<li>ファイル名: <%= file %></li>
<% end %>
</ul>
</body>
</html>

0 comments on commit d818976

Please sign in to comment.