Sha256: f16717a7d7109908ce64fda62d56d969903b75d4bd9d9c55e4407f04a3b7a3f0
Contents?: true
Size: 405 Bytes
Versions: 1
Compression:
Stored size: 405 Bytes
Contents
module CouchBlog class PostsController < CouchBlog::ApplicationController # GET posts def index @posts = CouchBlog::Post.active render couch_blog_render if respond_to?(:couch_blog_render, true) end #GET posts/:id(/:title) def show @post = CouchBlog::Post.find(params[:id]) render couch_blog_render if respond_to?(:couch_blog_render, true) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couch_blog-0.6.0 | app/controllers/couch_blog/posts_controller.rb |