You are now familiar with the Rails application now. You understand how the MVC works. You can build a website with the interface using Rails view. Now you want to learn some amazing libraries in Rails that make your website look more professional. In this blog, we will together learn how to use Action Mailer to send notifications to user’s emails.

Action Mailer allows you to send emails from our application using mailer classes and views. …


You may scare if the endpoint of an API you are working on for your final project could break. You may have the CSV file that contains all the data you want to use. But you don’t know how to seed to your Rails database to produce your own APIs.

This article will help you have more ways to seed a huge amount of data to your Rails application.

I will create a Github repo for anyone interested in this article can easier following. All the code and guidance are in the “seeds.rb” file of the Rails app. Our app…


There are thousands of ways to deploy and maintain an application likes Heroku, AWS, or Azure. In this article, we will learn how to deploy a React/Javascript application using one of the easiest ways, Netlify. Netlify integrates with Let’s Encrypt and automatically provisions, distributes, and renews your certificate. Besides, your site or application is set up with Netlify’s true auto SSL for free.

We can use Version Control Github, Gitlab, or Bitbucket to support deploying our application to Netlify. However, we will focus on the Github version control system in this article.

At first, you should create a Github and…


We all familiarize ourselves with the traditional class-based React components. Sometimes we use functional components for some display components that do not need to use state. The functional components have fewer lines of code and more approachable. For example, if you want to call aprops that was passed down from a higher-level component, you can just use props instead of this.props which is always use for class components. I love using functional components to write a React app but it has some drawbacks compared with class components. We can not initialize state in functional components...

…Until Hooks was released with…


When finishing the project for my phase 3 at Flatiron School, I found myself interested in the authentication part the most. By using Bcrypt gem, we can make authentication for our single page application built in Javascript. I created a Github repo of a Rails API with a basic HTML page for the frontend part and an MVC for just 1 table “user”. The repo is attached at the end of this blog, you can use it to code along.

Our page right now will look like below.

We will together to make authentication for our page. If someone signs…


At Flatiron Software Engineer Intensive Bootcamp, we have worked on many projects, especially big projects after each module. In module 2, we learned how to build a Rails app with full features. I and my partner built a great app for travelers for a project of module 2. With Bootstrap supported on Rails, our Rails app looks like a modern website. That’s why after finishing the project, I was excited to deploy it on Heroku to share my project with everyone. But we all know, Heroku only supports deploying an app using Postgresql database. …


When getting immersed in the world of Ruby and Rails, I realized the awesomeness of ActiveRecord. Through associations between models(has_many, has_one, belongs_to), it helps us write only one line for a specific job that often needs a lot of logic in ruby and SQL. By using ActiveRecord, you can easily manipulate data stored in a relational database.

For example, we have a basic relationship between 3 models: post, blogger, and destination. Using ActiveRecord, the associations will be set like this:


When I started coding, I usually ignored reading the errors. It is mainly because of the abundant lines filled with letters in the terminal. Altogether, they look like a big mess, and they seem to be very difficult to comprehend.

After a few weeks of continuously coding at Flatiron School, I realized that 99% of the time in coding is seeing those errors. Then, I know I should start to familiarize myself with them. To be completely honest, I don’t really like them. I see them as mundaneness that often makes me exhausted. Most of the time, I had to…

Chi Nguyen

Full Stack Developer Connect with me here: https://www.linkedin.com/in/chi-nguyen-swe/

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