I\'m using Paperclip to save pictures in my Rails application:
User model:
class User < ActiveRecord::Base has_one :profile end
profile = current_user.profile profile.avatar.destroy profile.save
You can't save object this way current_user.profile.save
current_user.profile.save