siddick/siddick

View on GitHub
app/controllers/profiles_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ProfilesController < ApplicationController
  before_filter :authenticate_user!

  def show
    @title = "Profile"
  end

  def update
    if current_user.update_attributes(params[:user])
      redirect_to profile_path, :notice => "Updated successfully"
    else
      render :show
    end
  end

end