Google Cloud HTTPs load balancing with Letsencrypt certificate

To setup HTTPs load balancer on Google Cloud Platform , we need to create an SSL certificate beforehand. Letsencrypt can be used to create an SSL certificate free of cost. The SSL certificate provided by Letsencrypt is valid for 3 months. In this article, we will learn how to setup HTTPs load balancing using Letsencrypt certificate for a Ruby on Rails application on Google Cloud Platform.

»
Author's profile picture Akshay Mohite on Devops |

Asynchronous Programming in Ruby

In traditional programming practice, I/O operations happen synchronously. The main thread will be blocked until I/O operation gets completed and CPU remains idle for the time I/O operation is getting completed. Consider the following example where CPU is blocked until query execution completed.

»
Author's profile picture Gaurav Singh on Ruby |

Devise model custom field updates with Rails

Devise gem helps in creating User Authentication layer for the Ruby on Rails applications. The other day, I was taking a session on Hackhands to resolve a query from a Ruby on Rails developer. The developer had added an enum attribute role on the users table. The query was how to update custom attribute added to users table generated by devise gem.

»
Author's profile picture Akshay Mohite on Rails |

Rails 5.2 introduces Active Storage for File Uploads

DHH [Creator of Rails] has recently announced Active Storage as a built in support for file uploads. Active Storage is targeted to be released with Rails 5.2. The development has been started on Github in ActiveStorage repository. It is started as a separate repository for now. This ActiveStorage is eventually planned to be merged in Rails repository.

»
Author's profile picture Akshay Mohite on Rails |

Rails 5 Pluck query changes over Rails 4

Rails 5 has improved the way query was done on database when pluck was called on a model. Before Rails 5, when pluck was called, it used to query database even if the activerecord collection is queried before. There are some posts explaining don’t pluck unnecessarily In this post we will discuss how Rails 5 has improved the way pluck used to work.

»
Author's profile picture Akshay Mohite on Rails |

Rails 5 Google Maps API included multilpe times error resolution

While working on integrating Google Map with the Rails 5 application, faced an error saying

»
Author's profile picture Akshay Mohite on Rails |

Exception Notification with Ruby on Rails and Slack Notifier

In Rails, exception_notification is popular gem used for Exception Notification to email. Slack is a new tool which is very popular among teams for collaboration. This article will help us understand the way to configure exception_notifier gem to send notifications to your Slack channel from Ruby on Rails application.

»
Author's profile picture Akshay Mohite on Rails |

How to Integrate Material UI with Rails

Google has released Material UI. Since then, Material UI is getting a lot of attraction from Designers and Developers around the world. This article will help you create Material UI application in Rails.

»
Author's profile picture Akshay Mohite on Rails |

Rails Slack Integration with Slack Notifier gem

In this article we will learn how to integrate slack with Rails applications using slack-notifier. Slack is a messaging app for teams. Slack comes with integration services with tools such as Github, Airbrake, Jenkins, Bitbucket and there are many. You can visit Slack services page for full details.

»
Author's profile picture Akshay Mohite on Rails |

What is new in Rails 5 (Features + Changes)

This article will discuss what is new in Rails 5. The changes like rails instead of rake, ruby 2.2.1+ support, performance improvements, action cable, rails api application will be discussed.

»
Author's profile picture Akshay Mohite on Rails |

Rescue nil in Ruby on Rails

Ruby on Rails developers use rescue nil to get default value if particular expression evaluation fails. rescue nil is bad, very bad in terms of performance. We will learn why it’s bad and what should be used in order to achieve the same result

»
Author's profile picture Akshay Mohite on Rails |

Github Pages Custom Domain Godaddy Setup

Developers try Setting up the Blog with Github Pages and Custom Domain with Godaddy. This tutorial will help you to set up / point your Github Pages to your Custom Domain if your custom domain is registered with Godady!

»
Author's profile picture Akshay Mohite on Rails |

Send Push notifications to Android/iOS devices using Parse

This tutorial will help you to send Push notifications to Android and iOS devices from Ruby on Rails application using Parse

»
Author's profile picture Akshay Mohite on Rails |

Ruby Screenshot Website Capture – Screencap, Phantomjs

This tutorial will discuss various tools for Ruby Screenshot capture such as

»
Author's profile picture Akshay Mohite on Rails |

Ruby Flay Gem – DRY code base

Tutorial will discuss Ruby Flay gem used to DRY up Ruby/Rails application. Flay gem enforces Best practices to be followed while coding with Ruby and Rails

»
Author's profile picture Akshay Mohite on Rails |