Class: UzuUzu::Controller::User
- Inherits:
-
Object
- Object
- UzuUzu::Controller::User
- Defined in:
- lib/uzuuzu-cms/controller/user.rb
Instance Method Summary collapse
Instance Method Details
#before ⇒ Object
7 8 9 |
# File 'lib/uzuuzu-cms/controller/user.rb', line 7 def before redirect(rf(Initialize)) unless info.initialize? end |
#entry(id) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/uzuuzu-cms/controller/user.rb', line 11 def entry(id) saved = false UzuUzu.transaction do |tr| @user = User.first(:id => id) if request.post? @user.name = request.params['username'] tr.commit do saved = @user.save end end end respond(render_page(info, render_file(__DIR__('view/user/entry.rhtml')))) end |