You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
When i save a logo for a domain, it is not saved. Going back into the admin screen shows the image is 404 - its looking for the right file, but can't find it. I've recreated this issue using both the pow server, and just in webrick & going to localhost:3000
ActionController::RoutingError (No route matches [GET] "/images/stores/2/medium/happydog.jpg"):
Spree::Store.class_evaldo# For the default_url, assume Spree is mounted at '/' in your routes.rbhas_attached_file:logo,styles: {mini: '48x48>',small: '100x100>',medium: '250x250>'},default_style: :medium,default_url: "/assets/#{Spree::Config[:logo]}",url: '/spree/stores/:id/:style/:basename.:extension',path: 'public/spree/stores/:id/:style/:basename.:extension',convert_options: {:all=>'-strip -auto-orient'}# Required for Paperclip 4+# change the pattern to whatever suits your needsvalidates_attachment:logo,file_name: {matches: [/\A.+\.png\z/,/\A.+\.jpe?g\z/]}end
It's not very flexible, but worked for me.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When i save a logo for a domain, it is not saved. Going back into the admin screen shows the image is 404 - its looking for the right file, but can't find it. I've recreated this issue using both the pow server, and just in webrick & going to localhost:3000
gemfile.lock:
https://gist.github.com/asecondwill/16309d43e0ae36787a44
The text was updated successfully, but these errors were encountered: