app/controllers/crowdblog/posts_controller.rb in crowdblog-0.1.1 vs app/controllers/crowdblog/posts_controller.rb in crowdblog-0.1.2

- old
+ new

@@ -13,10 +13,12 @@ @post.save! redirect_to edit_post_path(@post) end def index + @state = params[:state] @posts = Post.scoped_for(current_user).for_admin_index + @posts = @posts.with_state(@state) if @state respond_with @posts end def create @post = Post.new(post_params)