#ruby on rails - Page 3 of 3

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.

[Fix] Missing top level class documentation comment Rubocop

Published by Prabin Poudel 2 min read
cover: [Fix] Missing top level class documentation comment Rubocop
There are multiple ways to fix missing top level class documentation comment in Rubocop. You can disable it in your whole app with by disabling cop in the whole project, disable it in one class or just add a comment above the class declaration.

Extract key or value from hash in ruby on rails

Published by Prabin Poudel 2 min read
cover: Extract key or value from hash in ruby on rails
Many times when working with pure sql queries for example, we need to extract keys and values separately. Learn how you can extract key or value from hash in Ruby on Rails.

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.

Generate unique random numbers or tokens in ruby on rails

Published by Prabin Poudel 2 min read
cover: Generate unique random numbers or tokens in ruby on rails
Learn how you can generate random and unique number or token from given range of number in Ruby on Rails.

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.