---
title: "Blogs by Prathamesh Sonpatki"
description: "Read BigBinary blog posts by Prathamesh Sonpatki."
canonical_url: "https://www.bigbinary.com/blog/authors/prathamesh"
markdown_url: "https://www.bigbinary.com/blog/authors/prathamesh.md"
---

# Blogs by Prathamesh Sonpatki

Read BigBinary blog posts by Prathamesh Sonpatki.

## Posts

### Rails 6 has added a way to change the database of the app

[Rails 6 has added a way to change the database of the app](https://www.bigbinary.com/blog/rails-6-has-added-a-way-to-change-the-database-of-the-app)

- Author: Prathamesh Sonpatki
- Published: April 30, 2019
- Categories: Rails 6, Rails

It is possible to change the database configuration using a simple command

### Rails 6 drops support for PostgreSQL version less than 9.3

[Rails 6 drops support for PostgreSQL version less than 9.3](https://www.bigbinary.com/blog/rails-6-drops-support-for-postgresql-less-than-9-3)

- Author: Prathamesh Sonpatki
- Published: April 10, 2019
- Categories: Rails 6, Rails

Rails 6 has dropped support for PostgreSQL versions less than 9.3

### Rails 6 database seed uses inline Active Job adapter

[Rails 6 database seed uses inline Active Job adapter](https://www.bigbinary.com/blog/database-seeding-task-uses-inline-active-job-adapter-in-rails-6)

- Author: Prathamesh Sonpatki
- Published: April 3, 2019
- Categories: Rails 6, Rails

Rails 6 uses inline Active Job adapter for background processing related to
db:seed task

### Rails 6 shows routes in expanded format

[Rails 6 shows routes in expanded format](https://www.bigbinary.com/blog/rails-6-shows-routes-in-expanded-format)

- Author: Prathamesh Sonpatki
- Published: March 27, 2019
- Categories: Rails 6, Rails

Rails 6 has added ability to show the routes in an expanded format

### Rails 6 shows unpermitted params in logs in color

[Rails 6 shows unpermitted params in logs in color](https://www.bigbinary.com/blog/rails-6-shows-unpermitted-params-in-logs-in-color)

- Author: Prathamesh Sonpatki
- Published: March 18, 2019
- Categories: Rails 6, Rails

The unpermitted params are shown in red color for better visibility

### Rails 6 adds ActiveRecord::Relation#pick

[Rails 6 adds ActiveRecord::Relation#pick](https://www.bigbinary.com/blog/rails-6-adds-activerecord-relation-pick)

- Author: Prathamesh Sonpatki
- Published: January 16, 2019
- Categories: Rails 6

Rails 6 added a shortcut to select first value for a group of columns from a
relation

### Skipping devise trackable module for API calls

[Skipping devise trackable module for API calls](https://www.bigbinary.com/blog/skip-devise-trackable-module-for-api-calls)

- Author: Prathamesh Sonpatki
- Published: October 30, 2018
- Categories: Rails

This blog post discusses about issues faced due to devise trackable module for
API calls and how to skip it

### Ruby 2.6 adds exception parameters for Integer & Float methods

[Ruby 2.6 adds exception parameters for Integer & Float methods](https://www.bigbinary.com/blog/ruby-2-6-adds-option-to-not-raise-exception-for-integer-float-methods)

- Author: Prathamesh Sonpatki
- Published: July 31, 2018
- Categories: Ruby 2.6, Ruby

Instead of raising exception, we can pass a keyword argument and the type
conversion methods will return nil

### RubyKaigi 2018 Day two

[RubyKaigi 2018 Day two](https://www.bigbinary.com/blog/rubykaigi-2018-day-two)

- Author: Prathamesh Sonpatki
- Published: June 1, 2018
- Categories: Ruby

Ground report of Day two from Sendai, Japan where RubyKaigi 2018 is happening

### RubyKaigi 2018 Day one

[RubyKaigi 2018 Day one](https://www.bigbinary.com/blog/rubykaigi-2018-day-one)

- Author: Prathamesh Sonpatki
- Published: May 31, 2018
- Categories: Ruby

Ground report of Day one from Sendai, Japan where RubyKaigi 2018 is happening

### Ruby 2.5 allows creating structs with keyword arguments

[Ruby 2.5 allows creating structs with keyword arguments](https://www.bigbinary.com/blog/ruby-2-5-allows-creating-structs-with-keyword-arguments)

- Author: Prathamesh Sonpatki
- Published: January 16, 2018
- Categories: Ruby 2.5, Ruby

We can now create structs by passing keyword arguments using a flag keyword_init

### Rails 5.2 allows mailers to use custom Active Job class

[Rails 5.2 allows mailers to use custom Active Job class](https://www.bigbinary.com/blog/rails-5-2-allows-mailers-to-use-custom-active-job-class)

- Author: Prathamesh Sonpatki
- Published: January 15, 2018
- Categories: Rails 5.2, Rails

Rails now allows to configure a job class for a mailer so that we can use custom
Active Job classes per mailer

### Ruby 2.5 adds Hash#transform_keys method

[Ruby 2.5 adds Hash#transform_keys method](https://www.bigbinary.com/blog/ruby-2-5-adds-hash-transform_keys-method)

- Author: Prathamesh Sonpatki
- Published: January 9, 2018
- Categories: Ruby 2.5, Ruby

Neat way to transform keys of the Hash, now natively supported by Ruby

### Rails 5.2 pass request params to Action Mailer previews

[Rails 5.2 pass request params to Action Mailer previews](https://www.bigbinary.com/blog/rails-5-2-allows-passing-request-params-to-action-mailer-previews)

- Author: Prathamesh Sonpatki
- Published: January 8, 2018
- Categories: Rails 5.2, Rails

A neat way to pass the params to the Action Mailer previews directly for better
debugging

### Ruby 2.5 enumerable predicates accept pattern argument

[Ruby 2.5 enumerable predicates accept pattern argument](https://www.bigbinary.com/blog/ruby-2-5-enumerable-predicates-accept-pattern-argument)

- Author: Prathamesh Sonpatki
- Published: January 2, 2018
- Categories: Ruby 2.5, Ruby

all?, any?, one? and none? method accept a single pattern argument and perform
case equality with that argument and it's contents

### Rails 5.2 adds bootsnap to the app to speed up boot time

[Rails 5.2 adds bootsnap to the app to speed up boot time](https://www.bigbinary.com/blog/rails-5-2-adds-bootsnap-to-the-app-to-speed-up-boot-time)

- Author: Prathamesh Sonpatki
- Published: January 1, 2018
- Categories: Rails 5.2, Rails

Rails 5.2 adds bootsnap gem to the Gemfile of newly created app so as to speed
up boot time

### Ruby 2.5 requires pp by default

[Ruby 2.5 requires pp by default](https://www.bigbinary.com/blog/ruby-2-5-requires-pp-by-default)

- Author: Prathamesh Sonpatki
- Published: December 20, 2017
- Categories: Ruby 2.5, Ruby

No need to require pp separately now, it is required'd by default

### Array#prepend and Array#append in Ruby 2.5

[Array#prepend and Array#append in Ruby 2.5](https://www.bigbinary.com/blog/array-prepend-and-array-append-in-ruby-2-5)

- Author: Prathamesh Sonpatki
- Published: December 19, 2017
- Categories: Ruby 2.5, Ruby

Better names for existing Array#unshift and Array#push methods

### Elm Conf 2017 Summary

[Elm Conf 2017 Summary](https://www.bigbinary.com/blog/elm-conf-2017-summary)

- Author: Prathamesh Sonpatki
- Published: October 4, 2017
- Categories: Misc

Summary of Elm Conf 2017 that took place on Sept. 28 2017 in St. Loius, MO, USA

### New Syntax for HTML Tag helpers in Rails 5.1

[New Syntax for HTML Tag helpers in Rails 5.1](https://www.bigbinary.com/blog/new-syntax-for-tag-helpers-in-rails-5-1)

- Author: Prathamesh Sonpatki
- Published: August 23, 2017
- Categories: Rails 5.1, Rails

Rails 5.1 introduces new shorter syntax for HTML tag helpers

### Rails 5.1 has introduced Date#all_day helper

[Rails 5.1 has introduced Date#all_day helper](https://www.bigbinary.com/blog/rails-5-1-has-introduced-date-all_day-helper)

- Author: Prathamesh Sonpatki
- Published: April 24, 2017
- Categories: Rails 5.1, Rails

Rails 5.1 has introduced a helper method for creating a range object covering
the whole day for given date

### Ruby 2.4 unifies Fixnum and Bignum into Integer

[Ruby 2.4 unifies Fixnum and Bignum into Integer](https://www.bigbinary.com/blog/ruby-2-4-unifies-fixnum-and-bignum-into-integer)

- Author: Prathamesh Sonpatki
- Published: November 18, 2016
- Categories: Ruby 2.4, Ruby

Ruby 2.4 has unified Fixnum and Bignum into Integer class. It has also
deprecated usage of Fixnum and Bignum

### Hash#compact and Hash#compact! now part of Ruby 2.4

[Hash#compact and Hash#compact! now part of Ruby 2.4](https://www.bigbinary.com/blog/hash-compact-and-hash-compact-now-part-of-ruby-2-4)

- Author: Prathamesh Sonpatki
- Published: October 24, 2016
- Categories: Ruby 2.4, Ruby

Ruby 2.4 has added Hash#compact and Hash#compact! methods into core

### Rails 5 - What's in it for me?

[Rails 5 - What's in it for me?](https://www.bigbinary.com/blog/rails-5-webinar)

- Author: Prathamesh Sonpatki
- Published: April 22, 2016
- Categories: Rails 5, Rails

Learn more about upcoming changes in Rails 5 release

### Rendering views outside of controllers in Rails 5

[Rendering views outside of controllers in Rails 5](https://www.bigbinary.com/blog/rendering-views-outside-of-controllers-in-rails-5)

- Author: Prathamesh Sonpatki
- Published: January 8, 2016
- Categories: Rails 5, Rails

Rails 5 allows rendering views outside of controllers. It has many benefits like
now views can be used in Mailers and other places.

### Test runner in Rails 5

[Test runner in Rails 5](https://www.bigbinary.com/blog/test-runner-in-rails-5)

- Author: Prathamesh Sonpatki
- Published: January 3, 2016
- Categories: Rails 5, Rails

Running tests got much easier in Rails 5. Now failing tests point to line number
and makes it easier to re run a failing test. There are many more goodies.

### ApplicationRecord in Rails 5

[ApplicationRecord in Rails 5](https://www.bigbinary.com/blog/application-record-in-rails-5)

- Author: Prathamesh Sonpatki
- Published: December 28, 2015
- Categories: Rails 5, Rails

If we want to add a functionality to all models we no longer need to pollute
whole ActiveRecord::Base. Just add that feature to ApplicationRecord.

### Optimize JavaScript code using BabelJS

[Optimize JavaScript code using BabelJS](https://www.bigbinary.com/blog/code-optimize-javascript-code-using-babeljs)

- Author: Prathamesh Sonpatki
- Published: August 26, 2015
- Categories: JavaScript

Use BabelJS to optimize JavaScript code. In reality you might not use it to
optimize code but this blog will show you tricks BabelJS is capable of.

### Gotcha with after_commit callback in Rails

[Gotcha with after_commit callback in Rails](https://www.bigbinary.com/blog/gotcha-with-after_commit-callback-in-rails)

- Author: Prathamesh Sonpatki
- Published: March 1, 2015
- Categories: Rails

Gotcha with after_commit callback in Rails

### Blue border around JWPLAYER video

[Blue border around JWPLAYER video](https://www.bigbinary.com/blog/blue-border-around-jwplayer-video)

- Author: Prathamesh Sonpatki
- Published: February 21, 2015
- Categories: Misc

How to remove blue border around JWPlayer

### Migrating existing session cookies while upgrading

[Migrating existing session cookies while upgrading](https://www.bigbinary.com/blog/migrating-existing-session-cookies-while-upgrading-to-rails-4-1-and-above)

- Author: Prathamesh Sonpatki
- Published: December 23, 2014
- Categories: Rails

Safely upgrade to Rails 4.1 and migrate existing session cookies without forcing
users to login again.

### Tricks and Tips for using Fixtures effectively in Rails

[Tricks and Tips for using Fixtures effectively in Rails](https://www.bigbinary.com/blog/tricks-and-tips-for-using-fixtures-in-rails)

- Author: Prathamesh Sonpatki
- Published: September 21, 2014
- Categories: Rails

Tricks and Tips for using Fixtures effectively in Rails

### RedDotRubyConf 2014

[RedDotRubyConf 2014](https://www.bigbinary.com/blog/reddotrubyconf)

- Author: Prathamesh Sonpatki
- Published: July 1, 2014
- Categories: Rails

This post talks about our experiences attending RedDotRubyConf 2014 in
Singapore.

## Links

- [Human page](https://www.bigbinary.com/blog/authors/prathamesh)
