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