Questions tagged [attachment-fu]

attachment_fu is a plugin by Rick Olson (aka technoweenie) and is the successor to acts_as_attachment.

attachment_fu is a plugin by Rick Olson (aka technoweenie http://techno-weenie.net) and is the successor to acts_as_attachment.

77 questions
0
votes
1 answer

File upload to a specific folder

I am using attachment_fu for file uploading... it saves the files to asset/0000/0001... something like this... i want to upload a file to a specific folder defined by a user... for example images to a specific folder... just like galleries... how…
Jamal Abdul Nasir
  • 2,557
  • 5
  • 28
  • 47
0
votes
1 answer

Attachment_fu file saving problem

Attachment_fu plugin is kind of old, but I have to modify an old app and I can't use another plugin like paperclip etc. So here's the code without further ado Submissions table structure --------------------------- | content_type |…
Anand Shah
  • 14,575
  • 16
  • 72
  • 110
0
votes
1 answer

Attachment Fu error on MAC OS X and Ubuntu 9.10

Greetings. I am encountering an issue with attachment fu and s3. Details: Production server - Ubuntu - imagemagick, rmagick aws-s3 gems are installed . Error starting…
kgpdeveloper
  • 2,099
  • 4
  • 25
  • 34
0
votes
1 answer

Heroku and Refinerycms: Application failed to start ~ attachment_fu problem

Ok so I'm trying to get Refinerycms working with Heroku, and I'm new at all of this. I've set up an amazon s3 account and added keys and ids to the amazon_s3.yml files. When launched on Heroku at gart.heroku.com I get the following error: App…
0
votes
1 answer

attachment_fu and multipart form_for

Woo. My first question. I have a feeling I'm overlooking something pretty basic in the construction of my form. I'm using attachment_fu and can't get this form to pass anything besides the file data. A user has_many profiles and a profile has_many…
hellodally
  • 265
  • 1
  • 9
0
votes
6 answers

Being as DRY as possible in a Ruby on Rails App

I'm currently using the awesome attachment-fu plugin for a Rails app, but as a novice developer, I've never encountered a scenario like the one I've found myself in. Essentially, I'm using the attachment-fu plugin on two levels. Is for user avatars…
btw
  • 7,006
  • 9
  • 40
  • 40
0
votes
1 answer

Alter :path_prefix dynamically when calling has_attachment via Attachment Fu plugin

By default Attachment Fu stores uploaded files in "public/#{table_name}". I want to modify this to be something like "public/#{table_name}/#{site_id}", where site_id is a property of the model. Note that I've tried using self.site_id and both…
mlambie
  • 7,467
  • 6
  • 34
  • 41
0
votes
1 answer

rails attachment_fu public_filename problem

attachment_fu generates wrong public_filename. >> pic.thumbnails => ProductPicture id: 12331, product_id: nil, parent_id: 12330, content_type: "image/png", filename: "b_9788994035109_mid.png", thumbnail: "mid", size: 16562, width: 205, height: 205,…
Sam Kong
  • 5,472
  • 8
  • 51
  • 87
0
votes
1 answer

Issue updating file attachment(image) using Attachment_fu

I am able to upload image files as attachments using Attachment_fu but when I try to edit/ modify images which were already uploaded, it does not work. In my Controller I have this: def update @sponsor_account = SponsorAccount.find(…
0
votes
1 answer

How to convert .tiff images into .jpeg format

I am using Attachment_fu to upload images. I need to convert .tiff images into .jpeg format after uploading image in application. I used below code: :styles => { :thumb => ["150x172#",:jpg], :large => ["100%", :jpg] }, But it is not…
Dipali Nagrale
  • 510
  • 5
  • 17
0
votes
2 answers

Uploading a file to a directory outside of RAILS ROOT with attachment_fu

I'm trying to use attachment_fu to upload files to a directory outside of the RAILS_ROOT. I want the files to be saved to ~/APP_NAME/uploads/ so that they can be approved/rejected before becoming publicly available. I've tried the following…
Ron Gejman
  • 6,135
  • 3
  • 25
  • 34
0
votes
1 answer

Rails plugin Attachment_fu on Windows

I'm having problem with Rails plugin attachment_fu. On every upload, I get validation error Size is not included in the list I'm currently using Rails 2.3.3 Ruby 1.8.6 The only thing I found about this problem is quite outdated discussion, which…
Jakub Arnold
  • 85,596
  • 89
  • 230
  • 327
0
votes
1 answer

Why is attachment_fu updating every attachment instead of just the changed ones?

I have a Property model with a has_many and accepts_nested_attributes_for on a Image model which uses attachment_fu. Updating a Property using the following code results in a database UPDATE for every single image (and each image thumbnail) no…
Marc
  • 483
  • 2
  • 13
0
votes
1 answer

rails + attachment_fu: issue with files in directories

I use attachment_fu for my rails app. It's great for me. However, the designer who works with me complains about it because it saves files in different directory. She said that she can't handle those files efficiently with Photoshop as they are…
Sam Kong
  • 5,472
  • 8
  • 51
  • 87
0
votes
2 answers

Attachment_Fu thumbnail width

Any ideas on how to get the width and height of the thumbnail image? photo.width returns the original photos width. I am storing the width of the thumbnail in the database, I'm just not sure how to access that object. Doesn't work: <%= image_tag…
Chap
  • 3,483
  • 1
  • 24
  • 27