Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add default_url option to Quick Start example

It took me a lot of digging to figure out how to add the
`:default_url` option, but it seems a common option that many
people will need to modify. Putting it anywhere in the README
will help those who just cmd-F on the page, like me.
  • Loading branch information...
commit 6d9e5f89b1a6203006e519f2a6cdc280575e49fd 1 parent dcd2774
Chad Ostrowski authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
2  README.md
View
@@ -101,7 +101,7 @@ In your model:
```ruby
class User < ActiveRecord::Base
attr_accessible :avatar
- has_attached_file :avatar, :styles => { :medium => "300x300>", :thumb => "100x100>" }
+ has_attached_file :avatar, :styles => { :medium => "300x300>", :thumb => "100x100>" }, :default_url => "/images/:style/missing.png"
end
```
Please sign in to comment.
Something went wrong with that request. Please try again.