Class: BlogController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- BlogController
- Includes:
- SimpleBlogHelper
- Defined in:
- lib/simpleblog/template/app/controllers/blog_controller.rb
Instance Method Summary collapse
Methods included from SimpleBlogHelper
Instance Method Details
#index ⇒ Object
6 7 8 |
# File 'lib/simpleblog/template/app/controllers/blog_controller.rb', line 6 def index @posts = SimpleBlog.list_posts(params[:tag], params[:in_progress]) end |
#show ⇒ Object
10 11 12 |
# File 'lib/simpleblog/template/app/controllers/blog_controller.rb', line 10 def show @post_content_html = SimpleBlog.render_post(params[:id]) end |