Sha256: 5c169d20487938cc1b719bd82fb2ae43d01e9d8cefbf33e0e0e3ae8d99c38ed2

Contents?: true

Size: 393 Bytes

Versions: 42

Compression:

Stored size: 393 Bytes

Contents

class ProfilesController < ApplicationController
  layout Saucy::Layouts.to_proc

  before_filter :authenticate

  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

42 entries across 42 versions & 1 rubygems

Version Path
saucy-0.5.5 app/controllers/profiles_controller.rb
saucy-0.5.4 app/controllers/profiles_controller.rb
saucy-0.5.3 app/controllers/profiles_controller.rb
saucy-0.5.2 app/controllers/profiles_controller.rb
saucy-0.5.1 app/controllers/profiles_controller.rb
saucy-0.5.0 app/controllers/profiles_controller.rb
saucy-0.4.10 app/controllers/profiles_controller.rb
saucy-0.4.9 app/controllers/profiles_controller.rb
saucy-0.2.28.1 app/controllers/profiles_controller.rb
saucy-0.4.8 app/controllers/profiles_controller.rb
saucy-0.4.7 app/controllers/profiles_controller.rb
saucy-0.4.6 app/controllers/profiles_controller.rb
saucy-0.4.5 app/controllers/profiles_controller.rb
saucy-0.4.4 app/controllers/profiles_controller.rb
saucy-0.4.3 app/controllers/profiles_controller.rb
saucy-0.4.2 app/controllers/profiles_controller.rb
saucy-0.4.1 app/controllers/profiles_controller.rb
saucy-0.3.4.1 app/controllers/profiles_controller.rb
saucy-0.4.0 app/controllers/profiles_controller.rb
saucy-0.3.4 app/controllers/profiles_controller.rb