Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
timfjord committed Feb 6, 2015
1 parent 5f865a8 commit 3f5e51c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Carrierwave::Data::Uri
# CarrierWave::DataUri

TODO: Write a gem description
Carrierwave plugin that allows create image from data uri

## Installation

Expand All @@ -20,8 +20,19 @@ Or install it yourself as:

## Usage

TODO: Write usage instructions here
```ruby
class User < ActiveRecord::Base
mount_uploader :avatar, AvatarUploader
end
```

Then we can create image from data

```
user = User.find 123
user.image_data_uri = 'data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP////8AAP///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw=='
user.save
```
## Contributing

1. Fork it ( https://github.com/[my-github-username]/carrierwave-data-uri/fork )
Expand Down
4 changes: 2 additions & 2 deletions carrierwave-data-uri.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
spec.version = Carrierwave::Data::Uri::VERSION
spec.authors = ['Tima Maslyuchenko']
spec.email = ['[email protected]']
spec.summary = %q{Carrierwave plugin that allow create image based from data uri}
spec.description = %q{Carrierwave plugin that allow create image based from data uri}
spec.summary = %q{Carrierwave plugin that allows create image from data uri}
spec.description = %q{Carrierwave plugin that allows create image from data uri}
spec.homepage = 'https://github.com/timsly/carrierwave-data-uri'
spec.license = 'MIT'

Expand Down

0 comments on commit 3f5e51c

Please sign in to comment.