class UzuUzu::Controller::Contents

Public Instance Methods

before() click to toggle source
# File lib/uzuuzu-cms/controller/contents.rb, line 7
def before
  redirect(rf(Initialize)) unless info.initialize?
end
index(id) click to toggle source
# File lib/uzuuzu-cms/controller/contents.rb, line 11
def index(id)
  contents = ::UzuUzu::Contents.first(:id => id)
  if contents.nil?
    not_found
  end
  respond(contents.render(self))
end