From 65c067621048a8e8ec72d2c47d17d5dafb2dcf84 Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 9 May 2010 11:34:10 +0200 Subject: added index action for tags, primarily removing the associated exception --- app/controllers/tags_controller.rb | 3 +++ app/views/tags/index.html.erb | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'app') 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 # Public def index + @page = Page.new :title => "Tags" + + @tags = Tag.all(:limit => 500) end 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 @@ -

Tags#index

-

Find me in app/views/tags/index.html.erb

+

Tags

+ +<% @tags.each do |tag| %> + <%= link_to tag, tag_path(tag.name.parameterize) %> +<% end %> \ No newline at end of file -- cgit v1.3