Sha256: 518fb52852036d27defc506316be054feaa38538acbbb57f47daa1a5045c1d35

Contents?: true

Size: 362 Bytes

Versions: 44

Compression:

Stored size: 362 Bytes

Contents

class ProfilesController < ApplicationController
  layout Saucy::Layouts.to_proc

  def edit
    @user = current_user
  end

  def update
    @user = current_user
    if @user.update_attributes(params[:user])
      flash[:notice] = "Your user account has been updated."
      redirect_to edit_profile_url
    else
      render :action => :edit
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
saucy-0.2.26 app/controllers/profiles_controller.rb
saucy-0.2.25 app/controllers/profiles_controller.rb
saucy-0.2.24 app/controllers/profiles_controller.rb
saucy-0.2.21 app/controllers/profiles_controller.rb
saucy-0.2.20 app/controllers/profiles_controller.rb
saucy-0.2.18 app/controllers/profiles_controller.rb
saucy-0.2.17 app/controllers/profiles_controller.rb
saucy-0.2.16 app/controllers/profiles_controller.rb
saucy-0.2.15 app/controllers/profiles_controller.rb
saucy-0.2.14 app/controllers/profiles_controller.rb
saucy-0.2.13 app/controllers/profiles_controller.rb
saucy-0.2.12 app/controllers/profiles_controller.rb
saucy-0.2.11 app/controllers/profiles_controller.rb
saucy-0.2.10 app/controllers/profiles_controller.rb
saucy-0.2.9 app/controllers/profiles_controller.rb
saucy-0.2.8.1 app/controllers/profiles_controller.rb
saucy-0.2.8 app/controllers/profiles_controller.rb
saucy-0.2.7 app/controllers/profiles_controller.rb
saucy-0.2.6.1 app/controllers/profiles_controller.rb
saucy-0.2.6 app/controllers/profiles_controller.rb