Sha256: 6616d66014c8aef489b2050d36b1569e0a88453fc8ca72fa23c900e85ce85983
Contents?: true
Size: 442 Bytes
Versions: 13
Compression:
Stored size: 442 Bytes
Contents
if @user.errors.empty? # ok if @update page.redirect_to :action=>"preferences" else page.replace "user#{@user[:id]}", :partial=>"users/li", :collection=>[@user] end else # render form if @update page.replace_html "user_#{@update}_errors", :inline => error_messages_for(@user) else @groups = secure!(Group) { Group.find(:all, :order=>"id") } page.replace "user#{@user[:id]}", :partial=>"users/form" end end
Version data entries
13 entries across 13 versions & 1 rubygems