Replace Rails confirm dialog with Bootboxjs
Today, I wanted to use Bootboxjs wonderful alert, confirm box in a project. Though it’s pretty easy to use separately, I, later, wanted to replace Rails default confirm dialog box with the same of...
View ArticleAmistad – Facebook like friendship management in Ruby on Rails
This post is part 1 of 2 in the series Ruby GemsToday I’ve decided to write something about the Ruby Gems that I used. So I’ve started this series (Ruby Gems). This is the first post of the series. I...
View ArticleHandlebars helpers
In an application we are using Handlebars templating. However, we needed many custom helpers to do what we wanted to achieve. Here are some of those helpers. It may help someone who is looking for...
View ArticlePassenger – Run Rails app in development mode
When you run Rails app using Phusion Passenger (modrails), by default, it runs in ‘production’ mode. However, if you want to run it in ‘development’ mode for any reason, you need to add a directive in...
View ArticleRails 4 “Routing Concerns”
Today, while digging routing guides of Ruby on Rails, I spot this new feature which is available in Ruby on Rails 4. Routing Concern is a wonderful concept of re-using routing definitions. I just love...
View ArticleDevelopment/Staging server on Heroku
Deploying with heroku is as easy as just pushing your master branch. However, this does not work for me as I manage different branch for development and staging. If I push these branches to heroku...
View ArticleSSH Tunneling for Ruby on Rails app
It is quite annoying to develop and test an app which is likely to receive data/notification from a third party site if your development computer isn’t globally reachable. You have to deploy to a...
View ArticlePrevent “whenever” creating separate cron job on each deployment
I am using whenever gem for handling cron job in a Ruby on Rails application. It’s fantastic because of it’s very easy DSL to create tasks and schedule it. It will do all the dirty works to update...
View ArticleIntegrate SparkPost in your Rails app
SparkPost (SP) is an advanced email delivery service. For a number of reasons including reputation based sending, high deliverability, scalability etc. SP is trusted by big senders like facebook,...
View ArticleSparkPost – Control engagement tracking with ActionMailer
In a recent post, I’ve shown how to configure action mailer to send emails through SparkPost. Today, I have faced a situation where it was needed to enable/disable tracking on a specific email. It’s to...
View Article