John’s Week 8 Blog Post

John Grieco
Invisible College
Published in
1 min readMar 3, 2015

This week was spent on adding user authentication with an added avatar upload option. I first was able to add these features to the Invisible College site and get them working, it was easier to start here because I didn’t have a User resource yet so I could create it from scratch and add an avatar upload feature from the start. Implementing this on the Rails Backend web application was a bit more challenging because we already had a User resource so I had to learn how to add rows to an already existing database resource. This was done using rails generate migration ‘table name’ ‘row: type’. This will be valuable to know in the future because you often want to make changes to a database as your application develops and Rails makes this easy to do.

The code that I added to allow for avatar uploads can be found here:

https://github.com/invisible-college/rails-backend/commit/9d3925c9fc8f55bd6ceecd59ad07bbbaf75d9f14

--

--