From 6eb1409f12710123f039720d4f539afd8e866b72 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Thu, 24 Jan 2008 17:11:54 +0000 Subject: [PATCH] ActionItem152: listing content tagged with a particular tag --- app/controllers/public/profile_controller.rb | 3 ++- app/views/profile/tag.rhtml | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 app/views/profile/tag.rhtml diff --git a/app/controllers/public/profile_controller.rb b/app/controllers/public/profile_controller.rb index e741ea5..b13b040 100644 --- a/app/controllers/public/profile_controller.rb +++ b/app/controllers/public/profile_controller.rb @@ -8,7 +8,8 @@ class ProfileController < ApplicationController end def tag - @tag = profile.content_tagged_with(params[:id]) + @tag = params[:id] + @tagged = profile.find_tagged_with(@tag) end end diff --git a/app/views/profile/tag.rhtml b/app/views/profile/tag.rhtml new file mode 100644 index 0000000..e964835 --- /dev/null +++ b/app/views/profile/tag.rhtml @@ -0,0 +1,9 @@ +

<%= _('Content tagged with "%s"') % @tag %>

+ +
+ +
-- libgit2 0.21.2