Class: BlogController

Inherits:
ApplicationController
  • Object
show all
Includes:
SimpleBlogHelper
Defined in:
lib/simpleblog/template/app/controllers/blog_controller.rb

Instance Method Summary collapse

Methods included from SimpleBlogHelper

#set_site_prefix

Instance Method Details

#indexObject



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

#showObject



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