Ruby in Rails
  • Home
  • Rails
  • Ruby
  • About
GitHub icon LinkedIn icon
Subscribe
akshay

Akshay Mohite

Hi there! I am a Ruby on Rails & ReactJS Enthusiast, building some cool products at DTree Labs.

123 posts •
Rails

Rails building json API responses with JBuilder

Rails is a MVC web application framework which supports building complex websites without writing any APIs. But, client side libraries are evolving at brisk pace with wide-spread use of React JS, AngularJS, VuJS

Akshay Mohite Akshay Mohite 9 min read
Rails

Rails adds before? after? methods on date time classes

Rails Date, DateTime, Time, TimeWithZone class objects could be compared using less than, greater than signs. Rails added methods before? and after? to compare objects of these datetime classes.

Akshay Mohite Akshay Mohite 1 min read
Ruby

Rails uses did_you_mean spell checker ruby gem for suggestions

When coding in Ruby, we tend to make typo errors. This can take up time if not quickly identified. did_you_mean spellchecker gem helps detect such errors and also presents suggestions that can resolve

Akshay Mohite Akshay Mohite 2 min read
Ruby

Ruby Chronic gem - parse datetime in natural language

To parse natural language datetime string in Ruby, we can use gem Chronic. Chronic is a natural language date parser in Ruby. This comes very handy, if we want to parse natural language

Akshay Mohite Akshay Mohite 3 min read
Rails

Rails Range cover? includes? methods support Range argument

Rails CompareWithRange core extension adds support of Range as an argument to Range#===, Range#cover? and Range#includes? methods. Ruby already has support for these three methods, but ruby does not support Range value as

Akshay Mohite Akshay Mohite 2 min read
Ruby

Ruby 2.6 adds Random.bytes method

Ruby 2.6.0-preview2 has been released recently. Random.bytes method was introduced with the release. This is equivalent to Random::DEFAULT.bytes. The feature returns random bytes based on the length argument passed to it.

Akshay Mohite Akshay Mohite 1 min read
« Newer Posts Page 7 of 21 Older Posts »
Ruby in Rails © 2021
Latest Posts Github Twitter LinkedIn

Subscribe to Ruby in Rails

Stay up to date! Get all the latest posts delivered straight to your inbox