<commit_before>This is a plugin for [Hobo](http://hobocentral.net).
This is a direct port of paperclip_with_hobo plugin to a GEM.

Install this plugin alongside [paperclip]

It adds two small things:

 - Automatically declares the fields for you, so you can just add
 
        has_attached_file :photo

   to your model, and then run the migration generator.   All options
   are automatically passed on to paperclip's `has_attached_file`.
   
 - Declares an input field
 
        <def tag="input" for="Paperclip::Attachment">
          <%= file_field_tag param_name_for_this, attributes %>
        </def>
        
   (to get this, you need `<include src="paperclip" plugin="paperclip_with_hobo"/>` in application.dryml)


### Installation

Paperclip is required so add it to your gemfile if you don't have it alread

    gem 'paperclip'
    
Add hobo_paperclip to your gemfile

	gem 'hobo_paperclip, :git => "git://github.com/bsleys/hobo_paperclip.git", :branch => "master"
    
Update your bundle:

    bundle install

Add paperclip to one of your models:

    has_attached_file :photo

Your default form for the model will now include the four attributes
added by `has_attached_file`.  To actually allow uploading, you will
need to manually add the attachment field (`photo` in the above example)
to your form, and don't forget to add the `multipart` attribute:

    <extend tag="form" for="MyModel">
      <old-form merge multipart>
        <field-list: fields="photo, other-fields, ..."/>
      </old-form><commit_msg>cleanup the readme file<commit_after>This is a plugin for [Hobo](http://hobocentral.net).
This is a direct port of paperclip_with_hobo plugin to a GEM.

Install this plugin alongside [paperclip]

It adds two small things:

 - Automatically declares the fields for you, so you can just add
 
        has_attached_file :photo

   to your model, and then run the migration generator.   All options
   are automatically passed on to paperclip's `has_attached_file`.
   
 - Declares an input field
 
        <def tag="input" for="Paperclip::Attachment">
          <%= file_field_tag param_name_for_this, attributes %>
        </def>
        
   (to get this, you need `<include src="paperclip" plugin="paperclip_with_hobo"/>` in application.dryml)


### Installation

Paperclip is required so add it to your gemfile if you don't have it alread

    gem 'paperclip'
    
Add hobo_paperclip to your gemfile

	gem 'hobo_paperclip', :git => "git://github.com/bsleys/hobo_paperclip.git", :branch => "master"
	
Update your bundle:

    bundle install

Include the hobo_paperclip taglib in front_site.dryml
	
	<include gem='hobo_paperclip'/>

Add paperclip to one of your models:

    has_attached_file :photo

Your default form for the model will now include the four attributes
added by `has_attached_file`.  To actually allow uploading, you will
need to manually add the attachment field (`photo` in the above example)
to your form, and don't forget to add the `multipart` attribute:

    <extend tag="form" for="MyModel">
      <old-form merge multipart>
        <field-list: fields="photo, other-fields, ..."/>
      </old-form>
{'fraction_non_alphanumeric': 0.08587786259541985, 'fraction_numerical': 0.0, 'mean_word_length': 3.5645863570391874, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 24, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5851228', 'n_tokens_mistral': 976, 'n_tokens_neox': 907, 'n_words': 362}