February 24, 2007 @ 09:34 PM
attachment_fu tutorial
Mike Clark was nice enough to put out a quick attachment_fu tutorial. Yes, this plugin is production ready, and it’s being used in a couple of my projects (including Mephisto).
Mike Clark was nice enough to put out a quick attachment_fu tutorial. Yes, this plugin is production ready, and it’s being used in a couple of my projects (including Mephisto).
by PJ Hyett on 25 Feb 17:56
I enjoy using attachment_fu, but I don’t understand why you’ve chosen to save the uploads in a directory based upon the parent_id (or id).
The last I checked, depending on the OS, you venture into dangerous territory with more than 30k nodes in any given directory, which presents a problem if you have 100k photo uploads.
I understand that this may not apply to most, but here’s how we’re doing at Chow:
folders = "00#{attachment_path_id}"[-3..-1].split(//) File.join(RAILS_ROOT, file_system_path, folders[2], folders[1], folders[0], thumbnail_name_for(thumbnail))Simple solution and you’ll almost never have to worry about scale again.
by rick on 26 Feb 08:02
Thanks for the suggestion. I just haven’t found The One True Way to handle this, and usually end up doing something more tailored to the application. It’s not a big deal though, just override #full_filename in your attachment model and you can use any path you want.
by Jeff Coleman on 26 Feb 23:09
Rick,
I’m in the process of converting an application from using file_column to using attachment_fu.
Do you know if attachment_fu works if the image’s model contains other metadata that must be validated?
I have a “Page” model which contains metadata like name, description, publication-date, and other details like that. I added the attachment_fu attributes to my Page model and made the necessary changes to my view and model code.
Now it seems to have troubles when I include both my model’s original validations (such as “validates_presence_of :name”) AND the “validates_as_attachment” method.
If necessary, I can switch my Page model to associate to an Image model, but I just wanted to find out if this problem was fixable as-is.
Thanks!
by Jeff Coleman on 27 Feb 02:57
Nevermind! Scanning your source code I realized that I was attempting to create thumbnails using the same class (Page) which requires validations. I added a thumbnail class, changed a couple of lines of code and everything works as it should now. Thanks again. :)
by jeroen on 28 Feb 14:16
It seems attachment_fu doesn’t work on windows. I switched back to acts_as_attachment and everything works again.
I never got passed the validations, which probably means the uploaded_data was never properly assigned.
by Jeff Coleman on 28 Feb 21:05
I’ve been adding logger messages into the attachment_fu code to see what’s causing my problems on Windows. In my case it’s not properly assigning the “size” attribute.
In “attachment_fu.rb”, there is the following method:
def set_size_from_temp_path self.size = File.size(temp_path) if save_attachment? end
Based on logger messages, I’ve determined that save_attachment? returns true, the temporary file does exist on my system, but that file’s File.size parameter returns zero, so it saves self.size as zero, thus failing the validations.
In my case, the uploaded_data IS properly assigned, and the image is saved to the disk in the appropriate place. The only problem I’ve found is with the size paramater.
I’ve created a brand new Rails app and model which uses only attachment_fu’s required fields to test these conclusions.
On my system I’m using: - Rails 1.2.2 - Windows XP - MySQL 5.0 - ImageMagick-6.3.2-Q16 - mini_magick 1.2.0
When attachment_fu creates thumbnails, the thumbnail files ARE saved with the correct size in their model. I don’t know why the original files aren’t.
Jeff
by Colin Marsh on 03 Mar 21:36
I ran into another windows problem related to the tempfile not opening the filestream in binary mode. I found a one line fix at http://blog.teksol.info/articles/2006/12/08/rmagick-and-jpeg-datastream-contains-no-image
but it forces you to modify the ruby tempfile.rb class. Anways, this fixed my windows problems.
by Jeff Coleman on 06 Mar 01:37
Colin,
I’ve tried that workaround and unfortunately it didn’t work for me. The odd thing is that the images are saved, resized and thumbnailed correctly, but the only problem is the file’s size is set to zero.
I’ve outlined the issue here: http://www.ruby-forum.com/topic/99870#new http://railsweenie.com/forums/3/topics/1257 http://beast.caboo.se/forums/2/topics/801
But haven’t encountered much in the way of a solution.
by Andrej on 06 Mar 18:09
How does one validate the contents of a file using a custom validate method in the attachment_fu model? I need to check the XML headers of a file and give an error in the upload form if the file fails the XML check. The method ‘full_filename’ does not give the path of the file until the record is saved. Is it possible to access the file before the record is saved?
by Todd on 07 Mar 02:01
How can I use different field name than uploaded_data? In the source code, it looks like it’s possible to use other name by doing some special code in the controller.
by Matt on 07 Mar 14:09
How would you guys recommend migrating from file_column to attachment_fu?
I probably have about 7-8 models using file_column currently, one of them being photos which has thousands of records.
What would be the syntax to save a file using attachment_fu using a file from the file system as the source as opposed to using an http submitted file?
by Tal on 19 Mar 15:30
Matt,
Let’s say your file_column model name is Photos. Let’s say your attachment_fu model is Photos_fu
Something like this would work:
The key here is :temp_path which lets you bypass the http post method.
Hope that helps!
by Tal on 19 Mar 15:32
Matt,
Please ignore the ProfilesImage part that happens to be my model using attachment_fu. Yours will be whatever you chose.
by dongbin on 23 Mar 01:01
Hi
When I test my attachment model with fixtures yml, some errors found.
I found the reason is model instance loaded by fixtures ignore “before_validation”—set_size_from_temp_path method. So errors happen when update_attributes.
Do u think it is a bug? Any suggestions to fix it?
Thanks.
by rick on 24 Mar 00:15
Models loaded from fixtures don’t call validations. Try tweaking the fixtures so the model validates. If it works, submit it as a patch. Tests pass for me though, so I’m not sure what you’re talking about.
by Eric on 24 Mar 17:20
Could you add ‘image/bmp’ to @@content_types in attachement_fu.rb? I modified my local version and it works fine with ImageMagick but I haven’t tested it with other image processors.
by Trevor Turk on 25 Mar 21:41
I wrote up a little piece about how to work with attachment_fu here:
http://www.almosteffortless.com/2007/03/25/working-with-attachment_fu/
It covers the issue PJ Hyett was talking about in his first comment where attachment_fu saves uploads in subfolders by default.
I also provide a couple of useful snippets that should help people set Capistrano up to make the development and production environments deal with uploads in the same way.
Hope somebody finds it useful!
by aldwis on 03 Apr 06:14
is it available to use a reference address(url)? it’s like when create an image on BlogSpot, you can choose to upload it or input a url.
by Ramon on 05 Apr 20:44
Thanks much for the plugin. It works nicely. I have written a post about using it to store images here. I also explain how to add the functionality requested by aldwis (uploading attachments given the url) although I have not tested it much.
Just a couple of comments: 1. There is a small bug: the image size is not updated after an image is resized (at least using ImageScience as image processor). This can easily be fixed by adding
self.size = File.size(self.temp_path)
before the image is saved in the resize image method.
2. There seems to be a funny bug in the ImageScience library. I am resizing big images to “200×200>”. The funny thing is that when I have a smaller image, some processing is done because the size of the image increases (from 5KB to 12KB) although its dimensions remain the same. Any ideas?
by Jos on 05 Apr 22:32
I am running into problems with attachment_fu and instantrails. After installing the plugin and running ‘rake test:plugins PLUGIN=attachment_fu’ it begins running the test, goes through creating tables and initializing schema, etc, and on the line
columns(“schema_info”)
i get below it:
Define INLINEDIR or HOME in your environment and try again rake aborted! Command failed with a status (1): [C:/InstantRails/ruby/bin/ruby -Ilib;test ”...]
I have no idea what this means, as I am new to rails and web development. Does this seem like a problem similar to yours? Have any ideas on what to do?
by Roberto on 10 Apr 08:45
Hi,
I tried to use AAA on Oracle and I can’t.
The Problem is simple: Oracle refuses to create columns named “size”.
Is there anyway to use another name….like “filesize” ?
TIA,
Roberto
by devSWnoda on 12 Apr 17:26
Hi, I have attachment_fu installed properly, and its been working great, except for the thumbnail feature.
The image gets uploaded properly, but no thumb is created. Here is my model:
has_attachment :content_type => :image, :storage => :file_system, :thumbnails => { :thumb => “125×125>” }
The validates_as_attachment is is there as well. It passes validation, writes the correct large image, and the thumbnail is nowhere to be found.
Thanks in advance, JJ
by Tudor on 15 Apr 12:06
I’ve been having the same sort of problems, the thumbnail is not created, and moreover the image is not actually resized. I’m using MiniMagick. I’ve checked and triple checked everything and can seem to be able to figure out what the hell is going on. If anyone has any suggestions I would really be grateful. Thank you.
by Guy Davis on 15 Apr 12:16
Hi, I’m having the same problem as devSWnoda above where everything but thumbnail generation is working. I have the thumbnails line my model:
:thumbnails => { :thumb => ‘100×100>’ }
But no _thumb images are created on disk. Any ideas? Thanks in advance.
by Guy Davis on 15 Apr 12:46
Found the problem of the missing thumbnails. Looking a Mike Clarke’s tutorial, the table has a parent_id column. I assumed this column could be changed to suit my model. For example, I have an Album has_one Covers. As such I changed the covers.parent_id field to covers.album_id. This was the cause of the problem. Adding back the parent_id column made the thumbnail generation work.
by ALessandro on 18 Apr 05:14
Problem in sanitize_filename, not function with: ruby 1.8.5 (2006-12-25 patchlevel 12) [i486-linux]
Changed in : def sanitize_filename(filename) filename.strip! # NOTE: File.basename doesn’t work right with Windows paths on Unix # get only the filename, not the whole path filename.gsub!(/.*(\\|\/)/, ’’) # Finally, replace all non alphanumeric, underscore or periods with underscore filename.downcase.gsub!(/[\w\.\-]/, ’_’) end
by Nuno on 25 Apr 09:35
Hi, I trying to find a solution to have the thumbnail generated at it’s current place but WITHOUT having any record created in the table…
In fact, I want ‘hardcoded’ thumbnails having always the same name, at the same place without polluting the table with double or triple entries…
I tried to find my way in the source code, without success
Thanks
by Nathan on 25 Apr 18:28
I’m using attachment_fu with ImageScience and have two quick questions:
1) When images are saved to the data base, the original image is not saved with width/height attributes. Is it possible to force attachment_fu to save these attributes?
2) When thumbnails are generated, the size attribute for the thumbnails seems to be the same as the size attribute for the original image. Is there a reason for this?
Thanks!
by Glen on 26 Apr 17:53
Should have read before I posted. I have figured out what is causing the problem. It has to do with windows not deleting the temp file. After shutting down then deleting the appropriate temp files I was able to upload again without trouble.
Worthless Operating System. I think I’m going to request a Linux machine to host this project.
by Cary Stephan on 07 May 07:57
Can this plugin work with images stored in a db (SQL Server to be specific)?
by Nemlah on 17 May 08:48
First of all thanks for tha plugin. It has saved us lots of work. We had it installed as an external in one of our projects and some time ago we noticed that files are not beeing stored on the FS. As i reverted to revision 2792 the saving of the files works again. Are there any major changes in the last revisions that might break the upload functionality, or require changes to our code? We are using Gentoo linux with latest rails and ruby..
Thanks Nemlah
by Hendy Irawan on 22 May 22:09
Rick,
I’m using attachment_fu (latest svn) with a model that validates_presence_of :some_id.
Problem is, when I do a .save!, that validation fails, because the model tries to save attachment columns first (without saving the other columns, including ‘some_id’). Even when I turn off validation, it still fails because the underlying table schema requires that column to be NOT NULL.
Note that I’ve assigned ‘some_id’ properly. When I turn off all validations including the DB, the data is saved properly (including the :some_id).
attachment_fu seems to do a two-step save. First save is saving its own columns. The second save will save other columns defined by the user.
Will help you in case you need examples/etc.
by Jon on 23 May 01:44
Hey Rick,
Thanks for attachemnt_fu! I’ve got everything working except the s3 part. For some reason, all that gets uploaded to s3 is the url of the uploaded file, not an actual picture. Yet, I can save the originally uploaded picture and the generated thumbnail just fine on the local file system. Isn’t that the craziest thing? Have you run into this problem at all?
Thanks! -Jon
p.s. I get the same result with both the rmagick and minimagick processors.
by rdave on 05 Jun 10:54
I’m trying to use attachment_fu for an existing application but I’m running into two problems:
1. It seems to store the file (I’m using s3) even if the validation fails.
2. I have an app that needs to store different versions or “thumbnails” of a file. For example if an audio file is uploaded the application transcodes the file into various formats and bitrates. I would like to use attachment_fu and the existing functionality there to save those version is the same way that thumbnails are stored. Has anyone done something similar and mind sharing your code? As it is afu will only generate the thumbnails for images. I guess this would also require using a different processor depending on the content type. Has anyone managed to dynamically use different processors?
I could use the after_attachment_saved callback to generate these but would rather not duplicate code.
by Riddlin... on 09 Jun 03:12
Found another good link on the topic here:
http://www.dotrb.com/2007/6/9/attachment_fu-and-restful_authentication
They go into a little more detail about how to override plugin methods. Pretty good write up.
by Sky on 17 Jun 03:55
nice plugin.
one thing is missing from Mike Clark’s tutorial is that the kind of indexing I should have on my model. my guess is that I need to index [parent_id, thumb_nail] because I need to look up thumb_nail images by its parent id.
what else am I missing?
by Rick on 23 Jun 21:14
There’s a bug with the file system backend (at least when using image_science) when uploading a gif file. The thumbnails are generated as pngs, but the content_type in the db for the thumbnails is still image/gif, and “thumbnail_name_for” still returns names w/ the .gif extension, so the files are never found
by Jamie Quint on 05 Jul 17:07
I like this plugin but have never been able to get it to work with S3 I inconsistently get upload errors (Broken pipes and the like), Models save even if validations fail, transactions fail and freeze up my mongrels, etc, etc. I’ve read about this a few places, yet nobody seems to have any solutions. Do you have anything on this Rick?
by Scott on 10 Jul 09:17
I had attachment_fu working fine with ImageScience creating thumbs and medium sized pics, and then it suddenly stopped working. Pics were still being uploaded and deposited in the correct locations, but no thumbs were being generated. Looking thru my revision history, I found that the top line of image_science_processor.rb had mysteriously changed from “require ‘image_science’” to “require ‘ImageScience’”. Changing it back fixed things. I’m new to Rails, and have no idea what I did, but I thought I’d post in case anyone else runs into this.
by Stefan on 14 Jul 13:01
Is there a good way to store multiple file formats?
Say, I’ve got a video and I want to download the file in one format, save it as an avi, and mov and store all in the db.
I can do this with file_column by just adding designating three rows as file_colums… upload_file, avi_file, move_file. Before the actual save, I do the conversions and save the whole thing in one go.
What about attachment_fu? Am I better off sticking with file_column?
by Farhad Farzaneh on 26 Jul 01:44
Thanks for the plugin. It’s a peach. I had one small issue: If you want to use a separate class for the thumbnails, with its own tables, then you don’t need the parent_id in the main image/attachment table, since this is only used by the thumbnails. However, the code still checks that the class has a column parent_id in method thumbnailable? I think that the line:
image? && respond_to?(:parent_id)
should be:
image? && thumbnail_class.new.respond_to?(“parent_id”)
Thanks
by Ron Phillips on 26 Jul 09:24
Just to respond to Cary Stephan (May 7): at this time, ColdFusion is about the only non-MS language that SQL Server BLOB plays nicely with. That implies that Java does, as well, so maybe JRuby?
Anyway, just Googling a little, it looks like none of PHP, Python, nor Perl really get good results with BLOBs in SQL Server. Presumably the MS.Net would, but I don’t know that for sure.
Anyway, right now I don’t know of anyone who’s getting good results with Rails/SQL Server-BLOB.
by Roberto Esposito on 03 Aug 03:48
Hi all, in the past few days I had troubles in making attachment_fu to work in windows (it works beautifully under OS X). I tried anything I found on the net without any luck. Yesterday I found what seems to solve all my problems and I think it would be interesting for anyone experiencing the same problems. It seems that as it happens with Tempfile, also attachment fu does not open files in binary mode! I solved the problem changing the definition of function ‘temp_data’ as follows:
def temp_data data = nil if save_attachment? File.open(temp_path,’rb’) { |f| data = f.read } end data end end
by Daniel Haran on 08 Aug 13:18
Could you add “port: 80” in amazon_s3.yml.tpl ?
public_filename returns an extra colon if it’s left out – that’s not a problem most of the time since browsers just ignore it. Unfortunately, some web services choke on the URL and don’t give very good error messages. I’d like to avoid that headache to future users.
Thanks for a great library!
by Eric Northam on 22 Aug 10:46
Hi Rick,
I have a small change request that would have save me some debugging time. In s3_backend.rb you have the following code:
begin @@s3_config = YAML.load_file(RAILS_ROOT + ’/config/amazon_s3.yml’)[ENV[‘RAILS_ENV’]].symbolize_keys rescue raise ConfigFileNotFoundError.new(‘File RAILS_ROOT/config/amazon_s3.yml not found’) end
This raises a misleading error if the file does exist but the environment isn’t defined in the file. I have a separate environment for staging that wasn’t defined in the file. As a simple workaround could you at least pass the message from the resulting error so we can find out if it’s a permission error or nil error in this case.
Thanks,
Eric
by Dave on 01 Oct 21:21
Attachment_fu looks wonderful. Before implementing this over some custom file uploading code, I need to know if there is a convienent way to override the code that determines content-type.
When files are uploaded, I have a requirement that says that the content-type cannot be determined based on what is supplied by the user-agent (e.g., browser) or simply by file extension.
Is there a way to override the default method for determining content-type to use something like the ‘file’ utility. I’m currently doing something like this to determine the real content-type.
content_type = ‘file -bi ”#{ file }”`.chomp’
Aside from not trusting the user-agent to set the right content-type, this also helps us do the ‘right’ thing regardless of what the file extension is or what the browser claims the content-type is.
Anyone have some suggestions?
by CandyShopGirl on 09 Oct 08:03
Hail!
What do you think about Apple Iogo? >:)
by CandyShopGirl on 09 Oct 08:20
Hola!
What do you think about love? >:)
by Michael on 09 Oct 17:36
Hi all, I’m having trouble getting thumbnails with the call
mugshot.public_filename(:thumb)
The thumbs are being created correctly and I can retrieve them fine with the call
@mugshots = Mugshot.find(:all, :conditions => [‘thumbnail=”thumb”’])
I’m using Vista, RMagick and file system storage. Any thoughts?
by Todd on 12 Oct 04:01
Hello,
First off, thanks to Rick for attachment_fu and Mike for the excellent tutorial.
I, too, am having thumbnail problems with public_filename(:thumb). When I call photo.public_filename(:thumb) it double-generates the thumbname url, adding _thumb again:
img alt=”Dsc00874_thumb” src=”/photos/0000/0030/DSC00874_thumb.JPG?1192140936”
img alt=”Dsc00874_thumb_thumb” src=”/photos/0000/0030/DSC00874_thumb_thumb.JPG”
If I pass it the name of a non-existent thumbnail (public_filename(:medium), for example), then it still tries to generate a thumbnail link with the name thumb:
img alt=”Dsc00874_medium” src=”/photos/0000/0030/DSC00874_medium.JPG”
img alt=”Dsc00874_thumb_medium” src=”/photos/0000/0030/DSC00874_thumb_medium.JPG”
If I just use public_filename, or public_filename() it still always generates a thumbnail url as well.
I’m using locomotive on OSX with both RMagick and MiniMagick and file system storage.
by DanielRaimon on 20 Oct 22:36
Hi all!!!
Video from broken private site of USA, hackers have worked on glory!! Only +18!! The others, the request to no dist urb! ;) Saw similar references to your site weblog.techno-weenie.net, therefore has decided to place to you! If will consider inappropriate – please, remove it!!! :)
chicago erotic il services chicago erotic il services chicago erotic il services chicago erotic il services chicago erotic il services chicago erotic il services arabic woman sex arabic woman sex bdsm dom fem toons bdsm dom fem toons free local adult chat free local adult chat anal hardcore housewife milf anal hardcore housewife milf anal porn sex toon anal porn sex toon game porn xxx game porn xxx lesbian sex video web site free lesbian sex video web site free yahoo adult pic yahoo adult pic comic book porn comic book porn latino man porn latino man porn latino man porn latino man porn latino man porn latino man porn adult dildo sex toy adult dildo sex toy hardcore porn pay site hardcore porn pay site game real sex game real sex adult male porn adult male porn thumbnail anal fucking thumbnail anal fucking club jersey new sex club jersey new sex young gay teen tgp young gay teen tgp porn dvd store porn dvd store black tit fucking black tit fucking free anal movie video free anal movie video disney toons porn disney toons porn free anal movie video free anal movie video adult dvd lesbian adult dvd lesbian halle berry sex scene halle berry sex scene free cartoon sex pic free cartoon sex pic com free movie sex com free movie sex rose asian porn star rose asian porn star free xxx lesbian video free xxx lesbian video disney toons porn disney toons porn lesbian foot young lesbian foot young big pussy teen tit vids big pussy teen tit vids free gay sex xxx free gay sex xxx picture of anal cancer picture of anal cancer free gay sex xxx free gay sex xxx black free india pic porn sex black free india pic porn sex home made movies.com porn home made movies.com porn teen lesbian eating pussy teen lesbian eating pussy adult spy cam adult spy cam picture of anal cancer picture of anal cancer horny teen tit horny teen tit free amateur porn clip free amateur porn clip gay twinks boy gay twinks boy erotic teen photo erotic teen photo gay guy latin young gay guy latin young reality porn site list reality porn site list gay guy latin young gay guy latin young free teen porn sex picture free teen porn sex picture gay lesbian teacher gay lesbian teacher black gay site black gay site reality porn site list reality porn site list black porn star heather hunter black porn star heather hunter japanese lesbian porn japanese lesbian porn adult care day goal outcome program adult care day goal outcome program black gay porn site black gay porn site adult archie comic adult archie comic ebony and ivory porn ebony and ivory porn ebony and ivory porn ebony and ivory porn ebony and ivory porn ebony and ivory porn peliculas porn gratis peliculas porn gratis rpg sex game rpg sex game lesbian hentai picture lesbian hentai picture hardcore position sex hardcore position sex black double anal black double anal gay wrestling video gay wrestling video free sample of gay black sex free sample of gay black sex free adult married personals free adult married personals adult pussy pic adult pussy pic hq bdsm hq bdsm gay porn star picture gay porn star picture hq bdsm hq bdsm older gay male older gay male japanese adult magazine japanese adult magazine girl first lesbian girl first lesbian sex pussy game sex pussy game porn psp trailer porn psp trailer gay porn star picture gay porn star picture adult swinger video adult swinger video nice ass tit nice ass tit hardcore xxx gay sex hardcore xxx gay sex book store and adult theater book store and adult theater arab gay video arab gay video book store and adult theater book store and adult theater ebony hardcore anal sex ebony hardcore anal sex india gay sex india gay sex bdsm beginner bondage domination good guide sadomasochism submission bdsm beginner bondage domination good guide sadomasochism submission old lesbian kissing old lesbian kissing adult fun video adult fun video lick my anal cream pie lick my anal cream pie lesbian strap threesome lesbian strap threesome arab gay video arab gay video beauty black dior porn star beauty black dior porn star anal gallery gay photo sex anal gallery gay photo sex sex home video porn sex home video porn anal gallery gay photo sex anal gallery gay photo sex free gay fuck video free gay fuck video classic adult film classic adult film girl on girl lesbian girl on girl lesbian gay glory hole movie gay glory hole movie girl in kissing lesbian shower video girl in kissing lesbian shower video home video adult xxx home video adult xxx sex home video porn sex home video porn anal sex gallery anal sex gallery free adult group free adult group erotic sex story archive erotic sex story archive free gay picture sex woman free gay picture sex woman erotic sex story archive erotic sex story archive free gay picture sex woman free gay picture sex woman sex machine ebony sex machine ebony bbw free porn trailer bbw free porn trailer gay and lesbian association gay and lesbian association florida erotic massage florida erotic massage free adult video movie free adult video movie college sex photo college sex photo lesbian party sexy lesbian party sexy sex video photo sex video photo
by RonnyRolls on 21 Oct 07:24
Hi!!!
Has found references to free-of-charge video! Cautiously, adult! Has placed in section this.. ;)
big tit anal sex big tit anal sex black lesbian porn clip black lesbian porn clip big tit anal sex big tit anal sex sex party club sex party club black lesbian porn clip black lesbian porn clip mallu adult picture mallu adult picture free lesbian party gallery free lesbian party gallery free chubby porn clip free chubby porn clip lesbian real sex story lesbian real sex story mature sex dvd mature sex dvd anal porn video anal porn video black porn star deja black porn star deja adult mobile game adult mobile game naomi watt lesbian love scene naomi watt lesbian love scene adult mobile game adult mobile game anal free gay movie anal free gay movie gay cum shot gay cum shot banned download erotic horror movie banned download erotic horror movie naomi watt lesbian love scene naomi watt lesbian love scene lesbian licking pussy lesbian licking pussy dude gay movie dude gay movie adult porn review adult porn review free anal video clip free anal video clip big lesbian tit wrestlers big lesbian tit wrestlers ass fuck perfect tit ass fuck perfect tit lesbian movie sistas lesbian movie sistas ass fuck perfect tit ass fuck perfect tit teen hard anal fuck teen hard anal fuck free gay german porn free gay german porn gay teen anal gay teen anal free natural tit pic free natural tit pic danske porn film danske porn film black gay porn movie black gay porn movie adult career and continuing education adult career and continuing education black lesbian mpeg black lesbian mpeg lesbian movie sistas lesbian movie sistas gay and lesbian marriage gay and lesbian marriage free lesbian pussy licking movie free lesbian pussy licking movie gay and lesbian marriage gay and lesbian marriage adult sex toy review adult sex toy review latino gay sex latino gay sex live sex camera live sex camera lesbian ass fucking with strap on lesbian ass fucking with strap on free gay big cock gallery free gay big cock gallery free movie pic porn site free movie pic porn site black gay black gay adult xxx story adult xxx story free lesbian pussy licking movie free lesbian pussy licking movie free adult thumbnail photo free adult thumbnail photo accent adult comic introduction new accent adult comic introduction new free adult thumbnail photo free adult thumbnail photo arab kiss gay arab kiss gay nys sex offender nys sex offender disney porn star disney porn star accent adult comic introduction new accent adult comic introduction new lesbian dildo fuck lesbian dildo fuck used gay dvd used gay dvd gay submission wrestling gay submission wrestling black lesbian poem poetry black lesbian poem poetry gay and lesbian love gay and lesbian love free live sex web cam free live sex web cam adult finder friend login personals adult finder friend login personals free live sex web cam free live sex web cam adult comic gallery free adult comic gallery free hot anal video hot anal video discount sex toy discount sex toy double anal clip double anal clip tit n ass tit n ass adult finder friend login personals adult finder friend login personals nude old gay nude old gay black boy gay pay per view black boy gay pay per view watch paris hilton sex video watch paris hilton sex video naked gay video for free naked gay video for free adult amateur cam web adult amateur cam web naked gay video for free naked gay video for free hot teacher anal hot teacher anal young teen huge tit young teen huge tit indian porn story indian porn story swinger orgy sex swinger orgy sex free adult friend free adult friend gay personals teen gay personals teen mammoth book of erotic photography mammoth book of erotic photography fire first jada sex teacher fire first jada sex teacher adult amateur cam web adult amateur cam web adult party plan adult party plan male erotic picture male erotic picture adult party plan adult party plan fucking lesbian old young fucking lesbian old young male erotic picture male erotic picture adult cam free web adult cam free web free porn pregnant teen free porn pregnant teen dating experience gay i in liked online profile dating experience gay i in liked online profile grase porn poze grase porn poze best porn woman best porn woman download free indian porn movie download free indian porn movie asian anal hardcore sex asian anal hardcore sex adult code myspace adult code myspace lesbian ass lick lesbian ass lick adult code myspace adult code myspace anschauen bilder gratis porn anschauen bilder gratis porn best database porn star best database porn star mature plump big tit mature plump big tit boob busty huge pussy tit boob busty huge pussy tit woman with anal sex toy woman with anal sex toy free sex toy free sex toy anal school girl anal school girl big young gay cock big young gay cock lesbian ass lick lesbian ass lick nude lesbian nude lesbian young latinas anal young latinas anal nude lesbian nude lesbian amateur porn web site amateur porn web site young latinas anal young latinas anal adult birthday party supply adult birthday party supply adult entertainment picture adult entertainment picture acne adult clear confidence guide healing self skin acne adult clear confidence guide healing self skin free adult cyber sex chat free adult cyber sex chat amy futurama porn amy futurama porn adult clearance dvd adult clearance dvd adult video chat adult video chat
by James on 24 Oct 08:21
I’m experiencing the same problem as several others on the list: When running under Windows XP, Ruby 1.8.6 and rails 1.2.3, the plugin fails to determine the size of the uploaded file about 1 in every 2 uploads.
As a result the validation fails.
by Mike on 24 Oct 20:02
Whenever I upload a image using attachment_fu I get these errors:
Errno::ENOENT in AdminController#create
No such file or directory – ”/Users/mike”
This error occurred while loading the following files: image_science
”/Users/mike” is my os x home directy (also where my rails app is located) Im using locomotive btw
by Mark Windholtz on 26 Oct 09:54
I have a Model “Resource” with an /optional/ attachment. The attachment fields are in the resources table not a separate table.
Resource.create works fine with a empty attachment, but it fails on update. And says: can’t convert nil into String .../attachment_fu/backends/file_system_backend.rb:21:in `join’ .../attachment_fu/backends/file_system_backend.rb:21:in `full_filename’
Is the assumption that an attachment always has a file? Or am I doing something wrong?
by Piers on 26 Oct 20:48
I, too, was not getting thumbnails (or resizes) under OSX with ImageScience. Removing the trailing ”>” in the resize_to, etc., in the model, made them happen.
I was also getting the “Errno::ENOENT in AdminController#create” can’t find home dir message from locomotive – but as I had rails working already, I just persisted with that install
PG
by Andrew on 29 Oct 15:03
First I want to thank Rick for providing a great plugin to the Rails community. I’d like to use attachment_fu but I want to watermark my main images before they are stored to the file system. I know I can use an after_save handler and watermark the image then, but I was hoping to perform the watermarking before the image was saved. Anything I can override to make this happen without modifying the code for the plugin?
by Andrew Stone on 03 Dec 14:01
I have an update to attachment_fu that allows you do set :resize_to and the size of thumbnails to a method so you can dynamically alter the sizing based on some attributes of the image. I don’t know how to submit this to you, please let me know if you are interested.
by Dave on 21 Dec 21:07
I’m having a strange problem with attachment_fu. Uploads work perfectly in all cases except a CSV file from Safari. The content_type ends up being blank. vCard files work fine, Firefox and IE also work fine. I can’t figure it out. I’m using <%= f.file_field :uploaded_data %> in the form, and @import_job = ImportJob.new(params[:import_job]) in the controller. Things fail in save. There must be something easy I’m missing given Safari’s use with Ruby.
by Hiquerfeirl on 19 Jan 07:52
http://www.google.com http://www.yahoo.com http://www.msn.com
by izoxib on 14 May 01:07
YOUNG PORNO!!!/b[/url] CLICK HERE >>>/b[/url]
the tissues of the plant [b]dress the dollz[/b] extremely reduced cells lacking many. are called intromittent organs In [b]let the body hit the floor lyric[/b] organisms form offspring that combine. competition between individuals of one [b]top penis enlargement pill[/b] and females have different optima. and not accompanying cellular material [b]penisbot porn links[/b] stage is called diploid while. their young Males then mate [b]bar clear dog history pile tool web[/b] to produce more eggs Occasionally. of mixed chromosomes These processes [b]myfreepaysite spam[/b] Sex helps the spread of. bass eating their own juvenile [b]beautiful busty fucking hard movie teen[/b] independently in b Evolution Main. excretion and reproduction is done [b]teen collection bbs[/b] organs resulting in pollination Mushrooms. creates variation among offspring sex [b]aqua ezekiel force hunger teen[/b] released into and combine within. single posterior opening called the [b]video post thumbnail[/b] same way Vertebrates have received. to evolutionary arms race between [b]dick free small[/b] prone to abandon offspring Another. also shortens the female s [b]tranny threesome[/b] bird offers one example of. are used in combat between [b]ugly girl by weird al[/b] evolution of allele frequency in. polygynous mating systems presumably due [b]hard stiff cock[/b] handicaps Sex differences in humans. intercourse The penis contains a [b]free single chat rooms[/b] penis contains a tube through. example in the roundworm C [b]best xxx password[/b] for success in competition with. other sex For example male [b]fuck latina movie teen[/b] these is by temporal relation. this conflict may be resolved [b]cock milking[/b] shows time The alleles a. organ which directly supports the [b]asian dating[/b] are usually hermaphroditic producing both. Plant sexuality Like animals plants [b]nasty milfs[/b] those plants Flowers are usually. determination system based on the [b]doll dollz maker style[/b] of taxa One way of. size and appearance Common pheasants [b]why is animal testing good[/b] the transport of sperm these. spores the height of the [b]picture of young girl in pantie[/b] stamens these long filamentous organs. young of the female which [b]cum in mouth shemale[/b] commonly displace or kill their. which reduces the time spent [b]funpic picture[/b] right cones are the sex. system based on the number [b]deep face fuck throat[/b] in males and females have. their own without a second [b]free body jewelry[/b] may be merged to form. that some organisms produce only [b]big brandy pizza sausage[/b] become male when they reach. two X chromosomes In field [b]bi orgy[/b] in a broad range of. Sexually reproducing animals spend their [b]free picture pregnant sex[/b] b Evolution Main article Evolution. a group becomes female Clownfish [b]free porn pregnant video[/b] eukaryotes eg the malaria parasite. of the many plausible theories [b]teacher porn star[/b] of chromosomes from each parent. are ovules which develop into [b]adult cartoon network[/b] reproduction Some bacteria use conjugation. Because plants are immobile they [b]ms peachez video[/b] or by how many the. a disadvantage eg bright colors [b]richards realm story[/b] between bacteria while not the. and fusing with it in [b]america naughty girl[/b] through the differential expression of. a larger size and more [b]black man sexy white woman[/b] types of gametes over the. organism Hoverflies engaging in sexual [b]2006 bowl steelers super[/b] the sexual organs of those. life Many reptiles have temperature-dependent [b]adult black personals[/b] chromosome All other chromosomes in. only one X chromosome these [b]mature orgy[/b] the male optimum nor the. by insects The plants attract [b]asian first anal[/b] however specialization of sex has. defense of their young to [b]texas sex offender database[/b] sexual reproduction Fungi Main article. Other animals including most insects [b]kim possible naked cartoon[/b] This is called XX XO. and the majority of flowering [b]naked blonde .com[/b] the pollen as they move. young of the female which [b]ebony twat[/b] with two develop as female. fluid of Drosophila melanogaster which [b]hairy pussy cum[/b] considered a form of sexual. In many organisms the haploid [b]price leblanc used car[/b] through a single posterior opening. is called diploid while the [b]girl naughty orgasm[/b] their own juvenile descendants It.