Ruby Programming Uses: What Can You Create?

The Ruby programming language has many practical uses. But here’s the thing… Many people are attracted to Ruby because of Ruby on Rails. Rails is a framework. A framework is a set of tools that helps you build websites, or web applications, easier & faster than if you had to start from scratch. That’s fine. … Read more

How to Use Flash Messages in Rails

What are flash messages? A flash message is a way to communicate information with the users of your Rails application so they can know what happens as a result of their actions. Example messages: “Password changed correctly” (confirmation) “User not found” (error) You set these flash messages in your controllers, then you render them in … Read more

How to Use Queues in Ruby

A queue is like a waiting list. Imagine you’re waiting in line to buy the latest Apple product, getting a movie ticket, or to pay for your groceries. These are queues! You can use queues in your Ruby projects. How? Queues allow you to process things in order of arrival, so they can be helpful … Read more

How to Use The Ruby Gets & Chomp Methods

You’re writing a Ruby program & you want to ask the user a question… How can you do that? Well, you can use the Ruby gets method to read user input. You can call gets. Then your program starts waiting for you to type something with your keyboard & press the enter key. The result? … Read more