Skip to content

Plugin for Paperclip: Allows fetching attachments from remote locations

License

Notifications You must be signed in to change notification settings

Leadformance/paperclip_remote

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paperclip remote URL plugin

<img src=“https://travis-ci.org/bsm/paperclip_remote.png?branch=master” alt=“Build Status” /> Allows fetching files/attachments from remote locations.

Installation

Just add gem paperclip-remote to your Gemfile.

Alternatively, run sudo gem install paperclip-remote and add require 'paperclip_remote' to your app.

Example

In the model, you can specify:

class User < ActiveRecord::Base
  has_attached_file :photo, :remote => true
  attr_accessible   :photo, :photo_remote_url
end

In the form you can then have:

<%= f.label :photo, "Please update a photo" %>
<%= f.file_field :photo %>
<br/>
<%= f.label :photo_remote_url, "or specify a URL" %>
<%= f.text_field :photo_remote_url %>

About

Plugin for Paperclip: Allows fetching attachments from remote locations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 97.1%
  • Logos 2.9%