Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Avatar for User #14

Open
jendiamond opened this issue Sep 30, 2015 · 0 comments
Open

Add Avatar for User #14

jendiamond opened this issue Sep 30, 2015 · 0 comments

Comments

@jendiamond
Copy link
Member

Add the Carrierwave Gem to your Gemfile

gem 'carrierwave', '~> 0.10.0'

Use Carrierwave's generator to create an uploader tool for an Avatar.

The uploader tool will provide configuration options and methods to upload and display images.

`$ rails generate uploader Avatar

create  app/uploaders/avatar_uploader.rb

$ rails generate migration AddAvatarToUsers avatar:string

invoke  active_record
      create    db/migrate/20150930025454_add_avatar_to_users.rb

rake db:migrate

https://rubygems.org/gems/mini_magick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant