Displaying 20 results from an estimated 134 matches for "attachment_fu".
2007 Mar 28
1
attachment_fu & update_attributes... bug?
It seems that attachment_fu is a pretty popular plugin (it''s great), but
I''ve been having a terrible time trying to figure out an issue when
using "update_attributes". I''m storing files on the file system rather
than in a database.
It seems that when "update_attributes" is call...
2007 Dec 13
4
Attachment_fu problems on updates
...39;'s picture uploads as it should.
However, when updating the member, while selecting a new picture, an
error is thrown:
can''t convert nil into String
RAILS_ROOT: /Users/chris/Documents/Projects/Rails/CommunityCMS/trunk
Application Trace | Framework Trace | Full Trace
vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb:21:in
`join''
vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb:21:in
`full_filename''
vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:281:in
`temp_paths''...
2007 Aug 22
8
How to spec an attachment_fu model
First off, I''m not trying to spec attachment_fu, I know it''s been tested.
But, I added some code to that model that I do need to test. Basically,
I need to somehow fulfill the "uploaded_data" property so I can actually
run my tests(otherwise they fail because of validations). The
"uploaded_data" field is what wou...
2009 Jul 24
1
Attachment_fu - watermark tmp file before saved to S3
Hi there,
I''d like to use RMagick to watermark an image in the tmp directory
before Attachment_fu saves it to Amazon S3.
I took a look at the callbacks available in attachment_fu. There''s an
''after_attachment_saved'' method but this would be too late, and a
''before_thumbnail_saved'' but this is no good because it''s for
thumbnails.
I think I...
2008 Nov 11
1
attachment_fu, aws-s3 and backgroundrb
Hi,
I''m using attachment_fu to store files on amazon s3. A background job is currently performing the upload and I''m having a strange issue where the very first file uploaded/created (attachment_fu uploads when creating the object) does not get uploaded. The db information is all all good. The model and attachment...
2008 Sep 15
1
[attachment_fu] Allways triggering after_attachment_saved callback
Hi,
I use attachment_fu in one of my apps and recently I''ve realized that
udpates are taking too much time. After some debugging I''ve found that
attachment_fu is calling after_attachment_saved callback no mather if
attachemnt has changed or not.
For example this code:
after_attachment_saved do |photo|...
2007 Apr 18
3
nil.symbolize_keys -- error with attachment_fu
...is also happening on the create
method, even though it is the exact same code on my local machine.
Here is the error:
NoMethodError in UsersController#new
You have a nil object when you didn''t expect it!
The error occurred while evaluating nil.symbolize_keys
#{RAILS_ROOT}/vendor/plugins/attachment_fu/lib/technoweenie/
attachment_fu/backends/s3_backend.rb:136:in `included''
#{RAILS_ROOT}/vendor/plugins/attachment_fu/lib/technoweenie/
attachment_fu.rb:79:in `include''
#{RAILS_ROOT}/vendor/plugins/attachment_fu/lib/technoweenie/
attachment_fu.rb:79:in `has_attachment''
#{RA...
2007 May 07
1
attachment_fu seems to be searching the wrong location for my images
I just installed attachment_fu and for some reason, it seems to be
looking in the wrong location for my images.
I have a Product model that belongs to a photo model. the photo model
has the attachment_fu installed and configured like so:
class Photo < ActiveRecord::Base
has_attachment :content_type => :image,...
2007 Jun 29
1
attachment_fu validation error
...?
NameError: undefined local variable or method `full_filename'' for
#<Logo:0x3561ed8>
from ./script/../config/../config/../vendor/rails/
activerecord/lib/active_record/base.rb:1860:in `method_missing''
from ./script/../config/../config/../vendor/plugins/
attachment_fu/lib/technoweenie/attachment_fu.rb:276:in `temp_paths''
from ./script/../config/../config/../vendor/plugins/
attachment_fu/lib/technoweenie/attachment_fu.rb:270:in `temp_path''
from ./script/../config/../config/../vendor/plugins/
attachment_fu/lib/technoweenie/att...
2007 Mar 09
0
Merb + attachment_fu
Merbists,
I saw a note in the attachment_fu source code regarding supporting Merb[1]
as well as a post on the Caboose forum[2].
Has anyone gotten Merb working with Rick Olson''s attachment_fu to handle
uploads for a Rails app?
I''ve hacked together something, but it''s not pretty. Besides fixing the TODO
mentioned i...
2007 Sep 25
2
attachment_fu default path
Hi all. I''ve done a little google search, but doesn''t find anything
(with "attachment_fu default path") that could help me in changing
attachment_fu''s default path.
My model:
[audio.rb]
has_attachment :max_size => 20.megabytes
has_attachment :content_type => "audio/mpeg"
has_attachment :storage => :file_system
has_attachment :path_p...
2007 Sep 09
4
Images larger than 40k uploaded with attachment_fu won't display
I have a problem displaying images when using attachment_fu. When I
try to display the image, only about 40k appears in the browser, and
with some images even that much is not visible (just garbage when I
view source). I can display images smaller than 40k correctly.
I''m storing the images in the database (mysql) and haven''t tried
storing...
2007 Apr 27
3
attachment_fu content_type problem
Hi all....
Admittedly I''m new to Rails and trying to find my way but I''m having
an issue with uploading documents with attachment_fu.
I have a form where I''m uploading multiple attachments (using AJAX to
add file_filed_tags). That seems to work pretty well. The problem is
I can''t seem to get the content_type to work as I would expect. For
example, if I use this:
has_attachment :content_type => ['...
2008 Feb 02
1
attachment_fu stopped uploading files to S3
Hey everyone,
I''ve been using attachment_fu to upload large media files to S3 with
great success in my rails application. However, it has recently
stopped uploading.
My app appears to be uploading to somewhere, as my browser is
displaying a ''sending request to..." status message for about the
right length of time. The record...
2007 Dec 08
3
Uploading photos using facebook & attachment_fu
Hi All,
I''m trying to use a form to upload a photo that I will save using
attachment_fu. I''m very new to Facebookr so I apologize if this is covered
somewhere, but I''m kind of stumped.
Here''s what I''m doing now:
<% facebook_form_for(:my_object, :url => { :action => ''upload_photo'', :id =>
params[:id] }, :html => { :...
2007 Sep 18
2
Making attachment_fu polymorphic
I am working on a small model mixin called attachment_kung to make
attachment_fu polymorphic, so you no longer need a different table and
Model class for every associated attachment (Productimage, Ad_doc,
etc). All you really need is one model and table to handel all your
attachments - in some cases, anyway. I have the code working, but have
run into one small hitch that I can&...
2009 Jul 17
1
attachment_fu :partition => lamda {}
Hi -
I am trying to dynamically create my partition folders via
attachment_fu. I have read about a hack that allows you to do this on
the attachment model:
:partition => lambda {|a| a.article_id}
Which passes the model''s object into the lambda and uses the
''article_id'' attribute as its directory name. However, this isn''t
work for me...
2007 Jun 30
8
attachment_fu not working on Textdrive
I have attachment_fu working on my local Windows machine (localhost:
3000)
But when I transfer it to Textdrive (Solaris), it doesn''t work. Any
ideas?
Give it a shot: http://haloresearch.textdriven.com:8217/raw_data_files/new
I haven''t got the logger working yet on TextDrive, but that will be my
nex...
2007 Dec 06
0
saving the user id for thumbnails using attachment_fu
I am using attachment_fu to create thumbnails, and it is working
great. However, I am have a view with all my users thumbnails
displayed and am trying to make it so when you click on a thumbnail of
their avatar, it shows that users profile. In order to accomplish
this I have saved a user_id identifier for each avatar, bu...
2007 Dec 14
0
Calling GC.start with attachment_fu and RMagick -- where or if?
RMagick (and ImageMagick) have been criticized for memory leaks,
though the problem is avoidable by timely garbage collection -- see
this thread:
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/edee971625603f82/e402fb95de40d54b
Attachment_fu does not call GC.start in any fashion that I can see, so
my questions are these: does it need to, and if so, where would be the
optimal place? It appears that
AttachmentFu::Processors::RmagickProcessor#with_image may be the right
method -- perhaps in the ensure clause? Somewhere else?
Or should GC...