Example Rails application showing how to use https://github.com/bjedrocha/avatar_magick
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
vendor/assets
.gitignore
.ruby-version
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

A sample Rails application showing how to use the avatar_magick plugin to generate initial avatars. Please see this blog post for more information.

Running the application

Clone the repo. Run bundle install to install required gems. Run rake db:setup to create a default user account and to seed a couple of contacts. Run with rails s. The default user account and password is tdurden / password.

Branches

There are 3 branches in this project. The master branch shows the simplest use case of just generating initial avatars. The dragonfly-attachments branch shows how to handle image attachments using Dragonfly while defaulting to initial avatars. Finally, the paperclip-attachments branch is similar but uses paperclip to handle image attachments.

Note

You must run rake db:reset when switching branches as the schema for dragonfly attachments is different than the schema for paperclip-attachments.