Ruby is a programming language from Japan that focuses on Developer Happiness.
Ruby powers many of the web applications that you know and love, such as Basecamp, Shopify, GitHub, HEY, and many more. All these apps were built using Ruby on Rails, a web application framework that’s written in Ruby.
Most likely, you’re interested in learning Ruby as you want to try Rails. If that’s the case, you’re at the correct place.
In this series of posts, I will teach you Ruby and show how you can build simple web applications using Ruby. If you’re new to the language, or have never programmed before, this will be your gentle introduction to Ruby.
I will teach you just enough Ruby so you can understand and build your own Rails applications. Once you finish this guide, which shouldn’t take long, I will teach you Rails.
Sounds interesting? Let’s get started. We’ve got a lot of ground to cover.
Table of Contents
- Introduction to Ruby
- Installation and Setup
- Your First Ruby Program
- Basics of Ruby
- Strings
- Blocks
- Symbols
- Arrays
- Hash
- Control Statements
- Functions
- Functional Programming
- Object-Oriented Ruby
- Classes and Objects
- Constructor
- Methods
- Attributes
- Including Other Ruby Scripts
- Error Handling
- Dates
- Constants
- Ruby for Web Development
- Introduction to Sinatra
- Introduction to HTTP Protocol
- Handling HTTP Requests in Ruby with Sinatra
- Using Forms to Accept User Input
- HTTP Headers
- Sessions and Cookies
- Interacting with Files and Folders
- Saving Data in Databases
- Send Email
- Using Ruby Gems
- Introduction to Bundler
- Deploying Ruby Applications on Linux Server
- Next Steps