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