In this article we will be going over how to seed your data with a fetched api in ruby.

In this example, we will be using the tmdb api. In your seeds.rb file, you will first need to require some gems at the top of the file.

Second, you will…

Ruby is a backend programming language that was publicly released in 1995 and created by Yukihiro “Matz” Matsumoto. Whereas Ruby on Rails is an open-source web framework. Ultimately, Ruby on Rails is a Ruby gem with a set of Ruby code libraries.

Some of the reasons why a person may…

A class method in Ruby, is a method that refers to the entirety of a class. An instance method is a method that refers to a specific instance of a class.

Let’s look at a couple examples.

Assume that we have three models: Actor, Movie, and Role. The relationships between…

When working in Ruby, there are many instances where one will need to retrieve or get the value of an instance variable. This can be done with the getter method.

Very often, one will need to return certain elements from an array. This can typically be done through a for loop; however, in ECMAScript5, which was released in 2009 and was JavaScript’s first major revision, we gained the ability to filter through an array.

The filter() method is a built-in…

Daniel Kim

Future Full-Stack Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store