John’s Week 9 Blog Post

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

This week was spent focused on the Rails Backend application, that will eventually host the Puzzle Editor for the Global XPRIZE. I ran into an issue with the Avatar feature in that the edit button would just take the changes that you made to the avatar and just create a new user instead of editing the current user and saving the changes.

The changes I made to correct the edit feature can be found here:

https://github.com/invisible-college/rails-backend/commit/69707ffb2aef96d3628e428b1ab0f2b26a765335

Shortly after fixing the edit feature for our users profiles I noticed that on our production site located at https://global-learning-xprize.herokuapp.com when as user would upload an avatar it would no longer show up the next day, it would show up as a broken link or an ‘image not found’ link. After researching this issue I discovered that heroku doesn’t support data storage and that we would need to set up some sort of cloud storage option like Amazon S3. That is something that I will be working on this coming week.

Next I modified the puzzle page to just display the Author, Title and current user avatar and some added CSS.. This included learning about nested layouts with both action and page specific layout rendering. The code can be seen here: https://github.com/invisible-college/rails-backend/commit/528feca13c0049947fcf9f9c0c41ca07387a1ebe .

I also started working on the learnyounode tutorial and began research on node.js.

--

--