Closed happypeter closed 11 years ago
mount_uploader :xxx, AvatarUploader
once you have above, carriwave will give you @user.xxx_url for free, giving you sth like http://onestep-avatar.b0.upaiyun.com/avatar/e4f965aec83.jpeg , so that you don't need to define the method yourself, like
@user.xxx_url
def avatar_url Settings.upyun.bucket_domain + defualt_dir + self.avatar_asset_name end
Very handy!
once you have above, carriwave will give you
@user.xxx_url
for free, giving you sth like http://onestep-avatar.b0.upaiyun.com/avatar/e4f965aec83.jpeg , so that you don't need to define the method yourself, likeVery handy!