sheerun/s3_file_field — pull request #7 by tyrauber (2013-10-30 18:28:17+00:00)
Title: Fixes the "undefined method `gsub' for nil:NilClass" error for form_for @instance

In S3FileField::FormHelper, delete the object from options hash if the object is a new record, as it will otherwise raise an "undefined method `gsub' for nil:NilClass" error for new records if the form is passed an instance rather than a symbol.