Class: PostsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- PostsController
- Defined in:
- app/controllers/posts_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
5 6 7 |
# File 'app/controllers/posts_controller.rb', line 5 def show @post = @blog.posts.published.by_slug(params[:post_slug]).first end |