Ruby

How To Work with Arrays in Ruby — step-by-step Programming tutorial on Progressive Robot

How To Work with Arrays in Ruby

An array is a data structure that represents a list of values, called elements. Arrays let you store multiple values in a single variable. This can condense and organize your code, making it more readable and maintainable. In this tutorial, you’ll create arrays, access the values they contain, add, modify, and remove elements in an array, and iterate through the elements in an array to solve more complex problems.

Read more
How To Deploy Rails Apps Using Unicorn And Nginx on CentOS 6.5 — step-by-step Linux tutorial on Progressive Robot

How To Deploy Rails Apps Using Unicorn And Nginx on CentOS 6.5

In this the cloud provider article, we are going to take a look at assembling a multi-layer deployment installation to host Rails based Ruby web applications. For this arrangement, we will use the ever-so-powerful, flexible and extremely successful Unicorn application server running behind Nginx. Although we will be building this structure on a single server for demonstration purposes, you can easily use multiple droplets to spread things and scale out easily — both horizontally and vertically!

Read more
How To Install Ruby on Rails with rbenv on Debian 7 (Wheezy) — step-by-step Linux tutorial on Progressive Robot

How To Install Ruby on Rails with rbenv on Debian 7 (Wheezy)

Ruby on Rails is an open source web framework based on Ruby. It has been a popular choice among startups since it’s easier to build and ship the application. To start using Ruby on Rails, you need to have Ruby installed. However, due to the way Debian packaging system works, you’ll mostly end up with an old version of Ruby. So, this guide will show you a safe way for you to use the latest version of Ruby and Ruby on Rails on Debian 7.

Read more
How To Use Array Methods in Ruby — step-by-step Programming tutorial on Progressive Robot

How To Use Array Methods in Ruby

Arrays let you represent lists of data in your programs. Once you have data in an array, you can sort it, remove duplicates, reverse its order, extract sections of the array, or search through arrays for specific data. You can also convert an array to a string, transform one array of data into another, and roll up an array into a single value. In this tutorial, you’ll explore some of the most practical methods Ruby provides for working with data stored in arrays.

Read more
How To Work with Strings in Ruby — step-by-step Programming tutorial on Progressive Robot

How To Work with Strings in Ruby

A string is a sequence of one or more characters that may consist of letters, numbers, or symbols. In this tutorial, you’ll learn how to work with strings in Ruby. You’ll create strings, display them on the screen, store them in variables, join multiple strings together, and learn how to handle special characters such as newlines, apostrophes, and double quotes.

Read more
CHAT