Sha256: d282c2273286ce7a1adb0c78db0bb06f7adce663c2c3c6271c06ada3c73509e5
Contents?: true
Size: 529 Bytes
Versions: 2
Compression:
Stored size: 529 Bytes
Contents
class PostsController < Spree::BaseController resource_controller actions :show, :index index.response do |wants| wants.html wants.rss end def tags @posts = Post.publish.find_all_tagged_with(params[:tag_name]).paginate :page => params[:page] end private def collection @collection ||= end_of_association_chain.publish.paginate :page => params[:page] end #def object # @object ||= end_of_association_chain.publish.find(param) unless param.nil? # @object #end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_cms-0.0.4 | app/controllers/posts_controller.rb |
spree_cms-0.0.3 | app/controllers/posts_controller.rb |