Skip to content

This plugin basically upload an image to ImageShack and stores the url in the database.

License

Notifications You must be signed in to change notification settings

carlosbrando/imageshack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This plugin basically upload an image to ImageShack and stores the url in the database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages