Sha256: 45928af09cc43ef534363f9d71628cf884af8c6740d3f2f7f077ad2e36400cd3
Contents?: true
Size: 390 Bytes
Versions: 52
Compression:
Stored size: 390 Bytes
Contents
class ProfilesController < ApplicationController layout Saucy::Layouts.to_proc before_filter :authorize 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
52 entries across 52 versions & 2 rubygems