Skip to content
Browse files

Update USAGE documentation so it's clearer how to use generator

Closes #495
  • Loading branch information...
1 parent ce9ee13 commit 86c0c59121efac67317e96fee100c6c01cc41501 @sikachu sikachu committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/generators/paperclip/paperclip_generator.rb
View
4 lib/generators/paperclip/paperclip_generator.rb
@@ -1,7 +1,9 @@
require 'rails/generators/active_record'
class PaperclipGenerator < ActiveRecord::Generators::Base
- desc "Create a migration to add paperclip-specific fields to your model."
+ desc "Create a migration to add paperclip-specific fields to your model. " +
+ "The NAME argument is the name of your model, and the following " +
+ "arguments are the name of the attachments"
argument :attachment_names, :required => true, :type => :array, :desc => "The names of the attachment(s) to add.",
:banner => "attachment_one attachment_two attachment_three ..."

0 comments on commit 86c0c59

Please sign in to comment.
Something went wrong with that request. Please try again.