So here we are again…another assessment blog post for the Learn.co Web Development Track. I hope you enjoyed the last one on my WeWorkRemotely Ruby CLI Gem. This time, I’ll be talking about the Sinatra Project Management System I’ve created using Ruby.
The Assignment Requirements
- Build an MVC Sinatra Application.
- Use ActiveRecord with Sinatra.
- Use Multiple Models.
- Use at least one
- Must have user accounts. The user that created the content should be the only person who can modify that content
- Models must have validations to ensure that bad data isn’t created
- Any validation failures must be shown to user with an error message
My Project Idea & Initial Hangup
After reviewing the project requirements and viewing the examples of previous assignments, I decided to create a pretty simple project management system that would have a database, users, projects, tasks for those projects, and categories for both projects and tasks. This was my original data model idea:
Well, after a day of trial and error of attempting to make the Models I was creating match the product I had envisioned, it still wasn’t working. I couldn’t correctly create a join table to do exactly what I wanted. This is when I reached out for help from someone on the Learn-co staff. Much to my delight, Avi came to my rescue and simplified my system even more and helped me with understanding how to use my Tasks table as a join table. This meant I didn’t have to create a separate join table. Yippee!
See how much easier that is to wrap your head around!? I love it!
Period of Enlightenment & Building
After Avi ushered me into a period of enlightenment, I sat and coded for a few solid hours and got most of the general project working. After having spent a whole day attempting to get my original idea working just on the Model level, this was AWESOME.
Once the major building part was over, it took about 30 minutes to go through and QA the project to be sure everything did as I wanted.