Tutorials

Send SMS messages like emails in Rails with Textris
We’re going to take an example Rails application and replace the existing message sending code with Textris to see how it can tidy up our application. For this blog post, we’ll use a tutorial on sending instant lead alerts as our base. The applica...

How To Make Rails Json Output Decimal Numbers Instead Of Strings
Working on an application I noticed that when getting JSON data from Rails the decimal numbers come as strings. Turns out this is to ensure it is still accurately rounded.If you don’t care about the rounding of large numbers then you can force Rai...





What is time complexity? How it effects the speed of the programs?
The time complexity of the algorithm specifies that the total tie taken to run the complete program or the algorithm. The Time Complexity is generally expressed in Big-O notations.
Time Complexity is most commonly estimated by counting the number...



Rails 5 adds ability to create module and class level variables on per thread basis
Rails already provides methods for creating class level and module level variables in the form of cattr_* and mattr_* suite of methods.
In Rails 5, we can go a step further and create thread specific class or module level variables.