mirror of
https://github.com/wahyd4/ocelots.git
synced 2026-08-12 06:26:11 +10:00
15 lines
375 B
Ruby
15 lines
375 B
Ruby
require 'soundcloud'
|
|
|
|
class ProfileController < ApplicationController
|
|
include Soundcloud
|
|
before_filter :current_person
|
|
|
|
def update
|
|
process_sc_embed_code current_person, current_person
|
|
if current_person.update_attributes params[:person]
|
|
redirect_to profile_url, notice: 'Profile successfully updated.'
|
|
else
|
|
render action: 'edit'
|
|
end
|
|
end
|
|
end |