Class: UzuUzu::Controller::Contents
- Inherits:
-
Object
- Object
- UzuUzu::Controller::Contents
- Defined in:
- lib/uzuuzu-cms/controller/contents.rb
Instance Method Summary collapse
Instance Method Details
#before ⇒ Object
7 8 9 |
# File 'lib/uzuuzu-cms/controller/contents.rb', line 7 def before redirect(rf(Initialize)) unless info.initialize? end |
#index(id) ⇒ Object
11 12 13 14 15 16 17 |
# 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 |