From 7c35136f765b8dfb4717b98e090a578fde67bee2 Mon Sep 17 00:00:00 2001 From: jywarren Date: Tue, 3 Aug 2021 18:30:25 +0000 Subject: [PATCH] adjusted url param for profile images --- app/models/user.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 13958b1543..38711e2080 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -38,9 +38,9 @@ module Frequency c.validates_format_of_login_field_options = { with: Authlogic::Regex::LOGIN, message: I18n.t('error_messages.login_invalid', default: "can only consist of alphabets, numbers, underscore '_', and hyphen '-'.") } end - has_attached_file :photo, styles: { thumb: '200x200#', medium: '500x500#', large: '800x800#' } - #, - # url: '/system/profile/photos/:id/:style/:basename.:extension' + has_attached_file :photo, + styles: { thumb: '200x200#', medium: '500x500#', large: '800x800#' }, + url: '/public/system/users/photos/:id/:style/:basename.:extension' #:path => ":rails_root/public/system/images/photos/:id/:style/:basename.:extension" #. ":rails_root/public/system/public/system/:class/:attachment/:id_partition/:style/:filename" # from config/initializers/paperclip.rb