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

Version Path
zena-0.16.9 app/views/users/update.rjs
zena-0.16.8 app/views/users/update.rjs
zena-0.16.7 app/views/users/update.rjs
zena-0.16.6 app/views/users/update.rjs
zena-0.16.5 app/views/users/update.rjs
zena-0.16.4 app/views/users/update.rjs
zena-0.16.3 app/views/users/update.rjs
zena-0.16.2 app/views/users/update.rjs
zena-0.16.1 app/views/users/update.rjs
zena-0.16.0 app/views/users/update.rjs
zena-0.15.2 app/views/users/update.rjs
zena-0.15.1 app/views/users/update.rjs
zena-0.15.0 app/views/users/update.rjs