refactoring

This commit is contained in:
albert
2011-06-25 19:31:39 -04:00
parent 28d179708f
commit 739e28919a
11 changed files with 159 additions and 54 deletions

View File

@@ -3,7 +3,7 @@ class FavoritesController < ApplicationController
if params[:tags]
redirect_to(posts_path(:tags => "fav:#{CurrentUser.name} #{params[:tags]}"))
else
@post_set = PostSets::Favorite.new(CurrentUser.user)
@favorite_set = PostSets::Favorite.new(CurrentUser.user, params[:page])
end
end