Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
This plugin basically upload an image to ImageShack and stores the url in the database.
Ruby
Branch: master
Failed to load latest commit information.
initializers First commit.
lib Check if IMAGESHACK_KEY was filled.
tasks First commit.
test First commit.
MIT-LICENSE First commit.
README Change README file.
Rakefile First commit.
init.rb Check for key only after initialized.
install.rb First commit.
uninstall.rb First commit.

README

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
Something went wrong with that request. Please try again.