Class: PostsController

Inherits:
Spree::BaseController
  • Object
show all
Defined in:
app/controllers/posts_controller.rb

Instance Method Summary collapse

Instance Method Details

#tagsObject



15
16
17
# File 'app/controllers/posts_controller.rb', line 15

def tags
    @posts = Post.publish.find_all_tagged_with(params[:tag_name]).paginate :page => params[:page]    
end