Sha256: 258c7405af5e91cdcd074728f49a3c6fa942ca45d6660b459fe8c4801022db1b
Contents?: true
Size: 494 Bytes
Versions: 1
Compression:
Stored size: 494 Bytes
Contents
require_dependency "write/application_controller" module Write class PostsController < ApplicationController layout Write.layout include ApplicationHelper before_filter :fetch def index @posts = GG.all end def show @post = GG.find params[:year], params[:code] end def refresh if write_admin? GG.clear! GG.fetch end redirect_to :action => :index end def fetch GG.fetch if GG.empty? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
write-0.2.1 | app/controllers/write/posts_controller.rb |