A sample Rails application showing how to use the avatar_magick plugin to generate initial avatars. Please see this blog post for more information.
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
.
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.
You must run rake db:reset
when switching branches as the schema for dragonfly attachments is different than the schema for paperclip-attachments.