diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/tags_controller.rb | 3 | ||||
| -rw-r--r-- | app/views/tags/index.html.erb | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index aef6e83..fe3380d 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb | |||
| @@ -3,6 +3,9 @@ class TagsController < ApplicationController | |||
| 3 | # Public | 3 | # Public |
| 4 | 4 | ||
| 5 | def index | 5 | def index |
| 6 | @page = Page.new :title => "Tags" | ||
| 7 | |||
| 8 | @tags = Tag.all(:limit => 500) | ||
| 6 | end | 9 | end |
| 7 | 10 | ||
| 8 | def show | 11 | def show |
diff --git a/app/views/tags/index.html.erb b/app/views/tags/index.html.erb index 19cf908..b962b65 100644 --- a/app/views/tags/index.html.erb +++ b/app/views/tags/index.html.erb | |||
| @@ -1,2 +1,5 @@ | |||
| 1 | <h1>Tags#index</h1> | 1 | <h1>Tags</h1> |
| 2 | <p>Find me in app/views/tags/index.html.erb</p> | 2 | |
| 3 | <% @tags.each do |tag| %> | ||
| 4 | <span><%= link_to tag, tag_path(tag.name.parameterize) %></span> | ||
| 5 | <% end %> \ No newline at end of file | ||
