Articles on Ruby

New Features in Ruby v2.3

Here are a few of the new additions coming in ruby 2.3: # Install using RVM rvm install 2.3.0 # Using Rbenv brew upgrade ruby-build --HEAD rbenv install 2.3.0 Safe navigation operator A new operator (&.) has been introduced. It can be very useful in cases where you need to check if an object is nil befor...

New Features in Ruby v2.4

I’ll summarize some of the interesting new features in Ruby 2.4 here. Numbers Fixnum and Bignum have been unified into Integer class. So far, we’ve had two classes for storing integers - Fixnum for small integers, and Bignum for numbers outside this range. However, these are implementation details that programmer...

What's New In Ruby on Rails 5.1

Recently Ruby on Rails 5.1 has been introduced. Let’s have a look what new features it has to offer to all Rails fans. On April 27 Rails Conf, which is the major event in Ruby on Rails world, took place in Phoenix, Arizona. It is 12th time Rails professionals from all over the world get together, which made it a pe...

Sending Emails In Rails Applications

Introduction In this article we will walk through a simple app to demonstrate how to send emails through a Rails application with ActionMailer, ActionMailer Preview, and through a third party email service provider such as Gmail or Mailgun. We will also demostrate how to use Active Job to send the email with a back...

Ruby On Rails User SignUp Email Confirmation(Manual)

Learning rails is very easy these days with the wealth of amazing tutorials out there however in my search I couldn’t find a good tutorial on how to build an email confirmation system for user sign up (you know the type where you have to click on a link in an email to confirm that the email address is actually yours...

What is Rack middleware?

Lets start with a basic browser-server interaction. Say you’re developing an app with Rails (or any other Ruby web framework) and it has a page located at ‘http://localhost:3000/users’ that displays all users. The ‘/users’ request is going to go to your Rails server asking to show all users. Behind the scenes, this...

Explore Blocks, Procs and Lambdas

In this post, you'll learn more about blocks and also about their lessor known cousins, Procs, lambdas and Methods. Our goal is for you to become comfortable working with blocks and writing your own methods that take them. You should also understand when you may need to use a Proc instead and how that works. Finall...

What is Monkey Patching in Ruby?

One of the most powerful aspects of Ruby is the ability to re-open any class and change it’s methods. Yes that’s right, you can actually reopen any class and change how it works. This includes the standard Ruby classes like String, Array or Hash! Now this is obviously as dangerous as it sounds. Being able to chang...

It's Time To HTTParty!

When you’re developing with Ruby, it’s pretty inevitable that at some point you come across an HTTP API that doesn’t have a gem available. While writing Hopefully Sunny I ran into just that situation with World Weather Online’s weather API. It’s often really tempting to go searching for a different API to use instea...

Setting Up Rails 5 App With Complete Test Suite And Essential Ruby Gems

In this article we're going to create rails 5.2 boilerplate app by installing complete test suite and most used gems: To clone this boilerplate app CLICK HERE, just clone this repo into your local machine and rename this with your app name (instructions given in readme file) Okay. first let's get into our terminal...

Links
Stay Updated

Join With Other 2000+ Devs To Stay Updated On Your Favourite Technology

Subscribe (Weekly Only)