Skip to content
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

Saving the image to the filesystem doesn't work #1

Open
mmustala opened this issue Nov 27, 2013 · 0 comments
Open

Saving the image to the filesystem doesn't work #1

mmustala opened this issue Nov 27, 2013 · 0 comments

Comments

@mmustala
Copy link

Hi,

I'm having issues with saving the uploaded image to the filesystem. Previously with rails 2.3 and the plugin attachment_fu it did work, so I think the filesystem permissions should not be the issue. Now after upgrading rails to 3.1.12 and taking the gem version into use the uploaded image files are no longer saved.

Ruby version has been all the time in ree-1.8.7-2012.02. That will be upgraded soon.

My Image model look like this.

class Image < ActiveRecord::Base
  belongs_to :benefit

  has_attachment :content_type => :image,
                 :max_size => 10485760,
                 :storage => :file_system,
                 :path_prefix => 'public/system/benefit_images'
  validates_presence_of :filename
end

The models are saved correctly and the image_tags generate correct paths. It is just the image what is missing from the path. Old images which are uploaded before the update are showing ok.

Any help or ideas what to test are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant