Jun 25, 2021Ruby on Rails MVCTo understand how Rails works you need to understand how the parts of Ruby on Rails fit together. The main parts are the Model, View and Controller. The Model is where Ruby on Rails gets its data. It talks with the database by making an SQL Query. The model is…2 min read2 min read
Jun 4, 2021rake db:seedTo begin, Rake is a tool that allows us to centralize our tasks so we can run them from one place. It eliminate the need to re-write scripts. You can even building your own rake task. For example, I created a Rake task that simply ‘puts’ “does this work???” in…3 min read3 min read
May 13, 2021How Optional Chaining (?.) HelpsOptional Chaining is a tool I learned while building a quiz app that randomizes question order. In order to randomize the question we needed to create a new array called, ‘question’, that held the single randomly selected question. We also wanted to have the randomly selected question appear immediately upon…2 min read2 min read
Apr 22, 2021Fetching JSON:Fetching JSON: I like the fetch() function because, for me, it is what crystallized the concepts of data flow, parameters, and the implicit and explicit passing of data into callback functions. …3 min read3 min read