#tutorial

Setup Action Mailbox with SendGrid

Published by Prabin Poudel 17 min read
cover: Setup Action Mailbox with SendGrid
Action mailbox can be used to forward all incoming emails to our Rails app and process them further. In this tutorial, we will be looking at the implementation and setup steps for making action mailbox work with SendGrid. We will test in development environment and also test with NGROK to make sure it will work perfectly in production.

Build Twitter Bot with Ruby

Published by Prabin Poudel 11 min read
cover: Build Twitter Bot with Ruby
Did you know? We can also build bot with Ruby. Today we will be building twitter bot that retweets set of hashtags. We will be using twitter gem which uses Twitter API under the hood.

Setup Gatsby with Strapi in M1 Mac

Published by Prabin Poudel 16 min read
cover: Setup Gatsby with Strapi in M1 Mac
Setting up strapi with gatsby is straight forward but not while you are setting it up in mac with M1 chip. M1 chip throws so many errors due to software support issues and I am writing this article to save your day.

Interact with Mysql Server using mysql2 gem [Part 4] - Perform Transactions

Published by Prabin Poudel 13 min read
cover: Interact with Mysql Server using mysql2 gem [Part 4] - Perform Transactions
In this part, we will learn about how we can perform transactions in the external mysql database using mysql2 gem. Transactions helps us in making multiple queries to database ensuring all queries are performed or none at all.

Interact with Mysql Server using mysql2 gem [Part 3] - Prepared Statement

Published by Prabin Poudel 7 min read
cover: Interact with Mysql Server using mysql2 gem [Part 3] - Prepared Statement
In this part, we will learn about how we can perform prepared statements to the external mysql database using mysql2 gem. Prepared statements are very useful against SQL injections.

Interact with MySQL Server using mysql2 gem [Part 2] - Insert and Update Operations

Published by Prabin Poudel 5 min read
cover: Interact with MySQL Server using mysql2 gem [Part 2] - Insert and Update Operations
In this part, we will learn about how we can insert and update records to the external mysql server using mysql2 gem. We will add two new methods to our service that can insert and update records to mysql server using mysql2 gem.

Interact with MySQL Server using mysql2 gem [Part 1] - Performing select operations

Published by Prabin Poudel 5 min read
cover: Interact with MySQL Server using mysql2 gem [Part 1] - Performing select operations
Database interaction is very simple in rails with Active Record but what if you have to communicate with external mysql server? Gotcha! Let's create a service to perform queries we want without using Active Record.

Setup Action Mailbox with Postfix - Part 2

Published by Prabin Poudel 4 min read
cover: Setup Action Mailbox with Postfix - Part 2
This is the second part of a 2 series tutorial to setup action mailbox with postfix. In this part, we will configure postfix in production server to forward incoming emails to our rails app so action mailbox can process it.

Setup Action Mailbox with Postfix - Part 1

Published by Prabin Poudel 6 min read
cover: Setup Action Mailbox with Postfix - Part 1
This is the first part of a 2 series tutorial to setup action mailbox with postfix. In this part, we will implement action mailbox with postfix and test it in development.

Reset password in react and rails app with devise

Published by Prabin Poudel 4 min read
cover: Reset password in react and rails app with devise
This tutorial shows you how to send reset password instructions email in React and Rails app. Learn about these steps to reset password for Rails/React app with Devise.