Skip to content

Commit

Permalink
adjusted url param for profile images
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren committed Aug 3, 2021
1 parent 35d61af commit 7c35136
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7c35136

Please sign in to comment.