Inherently Broken


How I Learned to Love to Fail

Nested Forms with Nested Routes Part 1

This is a two part installment covering how I used a nested form to CRUD with a nested resource. These two posts will go in depth, step by step on how I was able to get this complex relationship working for my Rails portfolio project, Film Journal. The concept of Film Journal is simple: it is a personalized web app used to keep track of the movies the user watches. In addition to simply adding the movie to the account, the user is also able to rate and review the movies watched. Sounds easy and straightforward, right? Well…it is and it isn’t. See, what we as users take for granted is the complex relationship required to execute a simple action, such as rating and reviewing a movie. On top of that, Rails has its own conventions to create some magic with less code, which is awesome, but takes a little getting used to.


Rack-Flash

I recently completed my Sinatra portfolio project and taught myself how to use the rack-flash3 gem to give a clear user experience.


Portfolio Project: Sinatra

As I have been making my way through the Sinatra curriculum, I started to see its strength (and conveniece!) in creating instances of a class from user generated information. User genrated information being the parameters the user inputs into a form in their browser and having Sinatra create and save that information into a database using ActiveRecord. It was such a relief to learn that ActiveRecord comes with so many helpful methods that allow the developer to write code that creates, reads, updates, and destroys (CRUD).


The MAGIC of ORM

I’ve started working through the first half of the ORM curriculum, and the way to translate Ruby objects to raw data and back, is intuitive and practical. There will probably be more lessons to abstract away some of these expressions, but the way a method can use SQL to find the raw data, then operate on the data in Ruby is starting to complete the picture of “real world” vs “terminal world.”


Portfolio Project: CLI Data Gem

For my first portfolio project, I wanted to create a CLI gem that would scrape the music review page of my favorite music publication, Under the Radar. I like this magazine for its abilty to write honest (though sometimes scathing) reviews about lessner known musical acts, hence under the radar. To pay tribute to the hard-to-please music critics, I decided to create a gem to display these reviews from your terminal.