tablatom / paperclip_with_hobo
- Source
- Commits
- Network (3)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
README.markdown | ||
| |
init.rb | Wed Feb 18 11:15:48 -0800 2009 | |
| |
taglibs/ | Mon Oct 27 06:50:33 -0700 2008 |
README.markdown
Paperclip with Hobo
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
Declares an input field
(to get this, you need<def tag="input" for="Paperclip::Attachment"> <%= file_field_tag param_name_for_this, attributes %> </def><include src="paperclip" plugin="paperclip_with_hobo"/>in application.dryml)
Important Note
The name of the plugin is important. It doesn't have to be paperclip_with_hobo but it will only work if this plugin loads after paperclip itself. Calling it paperclip_something is a good way to ensure that.

