Category: Rails 6

Setup Ruby on Rails 6 App with MongoDB under 5 Minutes

Setup Ruby on Rails 6 App with MongoDB under 5 Minutes

In this article, I will be discussing how to quickly setup a NoSQL database MongoDB with your brand new Rails 6 app. I am using Ubuntu 14.04, Ruby 2.5.1 and Rails 5.2 for this tutorial. MongoDB is an open source database management system (DBMS) that uses a document-oriented database model which supports various forms of data. If you have not installed MongoDB on your …

+ Read More

DataTables with Bootstrap 4 Minimal Setup in Rails 6

DataTables with Bootstrap 4 Minimal Setup in Rails 6

DataTables provide a quick and handy way to add functionalities to Tables.. In this article we are going to implement DataTable with bootstrap 4 theme to our brand new Rails 6 App. We will be using static data for this article. Setup Create home controller and set up your index page. In routes set up …

+ Read More

Generate Quick PDF Charts in Rails 6 with Dhalang

Generate Quick PDF Charts in Rails 6 with Dhalang

It gets messier when you try to render charts and graphs on PDF, as even widely used gem like wickedPDF doesn’t properly support HTML canvas element without applying patches, and becomes headache to upgrade in long run. Today I’ll tell you a quick way to build rich PDF charts in Rails using Google’s headless engine …

+ Read More

5 different ways to Generate PDF Charts in Rails 6

5 different ways to Generate PDF Charts in Rails 6

I was doing a task related to data representations and it needed lots of charts rendering stuff and converting them to PDF. Since the application is running on multiple devices, Ctrl + P option didn’t helped much. So, I started exploring each possible way out there. I am listing below, 5 best ways to generate …

+ Read More