Posts

Showing posts from July, 2020

ROR Important tools & Gems to simplify the development

Image
Hi, This is  Shubham Mishra  a ROR, iOS, Python developer,  this is the part of  Ruby on Rails  exploration journey.  In this post we will discuss about the Awesome tools to simplify your RoR application development process. Coders are also attempting to make into one the latest cutting edge technology and resources in their net development undertakings. Ruby on rails has always been one of the most common answers, though many of more than common quality ideas took the net development industry by weather with rain and thunder. Ruby on rails is a powerful, shaking, open-details programming language which takes care of to come with a rough writing language that helps reading and writing, producing the net telephone operations through a quick and good-price development stage. simple-making and doing work well are its principal chief places. Holding the code clean and structured when creating a wide Rails framework can be a grueling job for even the most experienced developers. A multitud

Ruby's Gsub method usage

Hi, This is  Shubham Mishra  a ROR, iOS, Python developer,  this is the part of  Ruby on Rails  exploration journey.  In this post we will discuss about the Awesome ways to use ruby's Gsub method. Now, lets first understand the term 'gsub' -> 'sub': Substitute,  'g': global Sounds a little odd, no problem lets go practically for better understanding. Lets say we have a string,  str = "Awesome season" What we want is to replace a word with another in ruby, say in our case it is replacing season with movie, now what we will do is, This is saying : Replace all the occurrences of the first word 'season' with the 'movie' Well other than just replacement task your gsub method can do a lot more stuffs, let's have a watch. Replace pattern with regular expression : So now lets learn to replace not only a single word but a sentences matching a regular expression, such as matching a phone number, email address etc The first option is