Files
ocelots/app/controllers/profile_controller.rb
T

15 lines
354 B
Ruby

require 'soundcloud'
class ProfileController < ApplicationController
include Soundcloud
before_filter :current_person
def update
process_sc_embed_code @person, @person
if @person.update_attributes params[:person]
redirect_to profile_url, notice: 'Profile successfully updated.'
else
render action: 'edit'
end
end
end