class NoteeController
Public Instance Methods
about()
click to toggle source
GET “/about”
# File lib/tasks/controllers/notee_controller.rb, line 58 def about end
archive_posts()
click to toggle source
GET “/archives/:year” GET “/archives/:year/:month”
# File lib/tasks/controllers/notee_controller.rb, line 39 def archive_posts @posts = archive_notees(params[:year], params[:month].present? ? params[:month] : nil) @notee_title = 'Archive: ' + params[:year] + (params[:month].present? ? "/" + params[:month].to_s : "") render :action => 'posts' end
archives()
click to toggle source
GET “/archives”
# File lib/tasks/controllers/notee_controller.rb, line 33 def archives @archives = notee_archives end
categories()
click to toggle source
GET “/categories”
# File lib/tasks/controllers/notee_controller.rb, line 21 def categories @categories = get_parent_categories_arr end
category_posts()
click to toggle source
GET “/categories/:name_or_slug”
# File lib/tasks/controllers/notee_controller.rb, line 26 def category_posts @posts = category_notees(params[:name_or_slug]) @notee_title = 'Category: ' + params[:name_or_slug] render :action => 'posts' end
index()
click to toggle source
GET “/”
# File lib/tasks/controllers/notee_controller.rb, line 7 def index @posts = notees @notee_title = 'Post Lists' render :action => 'posts' end
show()
click to toggle source
GET “/:id_or_slug”
# File lib/tasks/controllers/notee_controller.rb, line 14 def show redirect_to root_path if params[:id_or_slug].nil? @post = notee(params[:id_or_slug]) @notee_meta = notee_set_meta_by_post(@post) end
writer_posts()
click to toggle source
GET “/writers/:name_or_id”
# File lib/tasks/controllers/notee_controller.rb, line 51 def writer_posts @posts = writer_notees(params[:name_or_id]) @notee_title = 'Writer: ' + params[:name_or_id] render :action => 'posts' end
writers()
click to toggle source
GET “/writers”
# File lib/tasks/controllers/notee_controller.rb, line 46 def writers @writers = notee_writers end
Private Instance Methods
set_meta_info()
click to toggle source
# File lib/tasks/controllers/notee_controller.rb, line 62 def set_meta_info @notee_meta = Notee.blog_meta end