FileColumn - easy handling of file uploads in Rails |
||
|
Attention: I will be speaking at the Canada on Rails conference, which will be held on April 13th-14th in Vancouver, Canada. David Heinemeier-Hansson will be giving a keynote and there are a lot of other big names on the list of speakers. I'm honored to give a talk about file_column and developing plugins in general. This library makes handling of uploaded files in Ruby on Rails as easy as it should be. It helps you to not repeat yourself and write the same file handling code all over the place while providing you with nice features like keeping uploads during form redisplays, nice looking URLs for your uploaded files and easy integration with RMagick to resize uploaded images and create thumb-nails. Files are stored in the filesystem and the filename in the database. ExampleAs you can judge a library best by looking at how to use it, here is a short example: Just make the "image" column ready for handling uploaded files...
... generate file fields that keep uploaded images during form redisplays to your view...
... and display uploaded images in your view:
It's just as easy! Why should it be any more difficult for a Rails application? So what about the RMagick integration? Have a look: To resize every uploaded image to a maximum size of 640x480, you just have to declare an additional option.
You can even automatically create versions in different sizes that have nice filenames...
... and display them in your view:
FeaturesHere is a short list of features:
DownloadThe project's subversion repository can be found at http://opensvn.csie.org/rails_file_column/plugins/file_column. Since some 0.14.x release, rails contains a plugin manager that you can use to install file_column as a plugin. Just type (all in one line)
in your project's working directory to install the latest version into "vendor/plugins/file_column". You can find stable releases in the "tags" directory of the subversion repository.
You can download the newest and older versions here. Please have a look at
the
LicenseFileColumn is licensed under the same license as Ruby on Rails (MIT). |
|
[ Impressum ]