classPicture<ActiveRecord::Baseattr_accessible:user_id,:statusattr_protected:path# we don't want hackers change this and point it to nowhere, right?
# Use Carrierwave for Upload?
# mount_uploader :path, PictureUploader
validates:status,:in=>%w( shared public private )scope:public,where(:status=>"public")# Favorite Association
Click to Expand
Is this a good/useful/informative piece of content to include in the project? Have your say!