mirror of
https://github.com/wahyd4/ocelots.git
synced 2026-08-23 03:46:12 +10:00
11 lines
260 B
Ruby
11 lines
260 B
Ruby
class ProfileController < ApplicationController
|
|
before_filter :current_person
|
|
|
|
def update
|
|
if @person.update_attributes params[:person]
|
|
redirect_to '/', notice: 'Profile successfully updated.'
|
|
else
|
|
render action: 'edit'
|
|
end
|
|
end
|
|
end |