Flatiron Sinatra Project #2

Gabriela Johnson
2 min readAug 28, 2020

Its about that time again. So far we are finishing up project 2 in the Software engineering flatiron program. This project includes Ruby, Sinatra, and Active Record. Ill start off my saying that this project was about the same difficulty level of project 1, but in a different way. Although at this point in tim we are aware of how our system will be running, there are a lot of little details that could cause problems in the app if not done correctly.

I decided to gear my project around football. The application is called Football Showoff, where you can post your favorite football pictures with and stats you would like in the description. A huge part of this project is having a has_many relationship, which in this project, a user has many posts. In the process of putting these things together, one of the longest things for my to complete were the controllers for my posts and users. With that in mind, i then created my views page, which are the erb files that have ruby and html that will then show the webpage format to the application user. When a user has posts, they can then edit, delete, or create a new post from there.

Biggest Holdback

One of my biggest road blocks was unsurprisingly very simple, which is one of the reasons i love coding. I was having trouble with my users table, being that i had created in, but it wasn't showing up in my schema even though the information was there. Thanks to my wonderful instructor, come to find out, it was due to an extra space in “t.string :image_url”.Once that was resolved, i was finally able to get through the rest of the project and complete it.

Overall the experience wasn't as difficult than he first project, and over time you get more familiar with solving errors and finding your little mistakes. Im excited for the project thats up next!

--

--