has image plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install git://github.com/norman/has_image.git
Point-and-drool use case:
It’s probably not what you want, but it may be useful for bootstrapping.
class Member < ActiveRecord::Base has_image end
Single image, no thumbnails, with some size limits:
class Picture < ActiveRecord::Base has_image :resize_to => "200x200", :max_size => 3.megabytes, :min_size => 4.kilobytes end
Image with some thumbnails:
class Photo < ActiveRecord::Base has_image :resize_to => "640x480", :thumbnails => { :square => "200x200", :medium => "320x240" }, :max_size => 3.megabytes, :min_size => 4.kilobytes end
HasImage also provides a view helper to make displaying the images extremely simple:
<%= image_tag_for(@photo, :thumb => :square) %>
Further Documentation
Edit plugin | Back in time (5 older versions) | Last edited by: scott, 5 months ago

