Skip to content

Instantly share code, notes, and snippets.

@technicalpickles
Created September 24, 2008 15:24
Show Gist options
  • Save technicalpickles/12579 to your computer and use it in GitHub Desktop.
Save technicalpickles/12579 to your computer and use it in GitHub Desktop.
def update
@owner = Owner.find(current_user.id)
@owner.attributes= params[:owner]
if @owner.save
flash[:notice] = "Successfully updated your profile!"
current_user.reload
current_agent.reload
else
flash[:notice] = "Unable to update your profile!"
end
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment