Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (22 sloc) 0.514 kB
Imageshack
==========
This plugin basically upload an image to ImageShack and stores the url in the database.
Example
=======
Migration:
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.string :name
t.string :photo
end
end
def self.down
drop_table :users
end
end
Model:
class User < ActiveRecord::Base
upload_image_to_imageshack :photo
end
Copyright (c) 2010 Carlos Brando, released under the MIT license
Jump to Line
Something went wrong with that request. Please try again.