-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes to profile images for fog/Google Cloud Storage #9958
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,9 +38,10 @@ 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' | ||
#:path => ":rails_root/public/system/images/photos/:id/:style/:basename.:extension" | ||
has_attached_file :photo, | ||
styles: { thumb: '200x200#', medium: '500x500#', large: '800x800#' }, | ||
url: '/public/system/profile/photos/:id/:style/:basename.:extension', | ||
path: ':rails_root/public/system/public/system/profile/photos/:id/:style/:filename' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh wait, the other way around. So the images you're finding are at There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had been working from this old image: https://storage.googleapis.com/publiclab-production/public/system/profile/photos/554/thumb/Bristol-539-7.jpg which currently works. |
||
|
||
do_not_validate_attachment_file_type :photo_file_name | ||
# validates_attachment_content_type :photo_file_name, :content_type => %w(image/jpeg image/jpg image/png) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use one level of indentation for parameters following the first line of a multi-line method call.