Learn Ruby on Rails

Read these Ruby on Rails tutorials to master the popular Ruby web framework, including how to create applications, work with databases, and implement authentication.
  1. How to Create Your Own Local Premium URL Shortener Service

    How to Create Your Own Local Premium URL Shortener Service

    Tutorial Intermediate

    Learn how to set up your own private URL Shortener with the Premium URL Shortener. You will also create a neat PopClip extension to make it even easier.

  2. Uploading With Rails and Carrierwave

    Uploading With Rails and Carrierwave

    Tutorial Beginner

    You will learn how to work with Carrierwave, a very popular and feature-rich file uploading solution for Rails, while crafting a demo application.

  3. How to Use OmniAuth-Twitter in a Rails Application

    How to Use OmniAuth-Twitter in a Rails Application

    Tutorial Beginner

    In this tutorial, you will learn how to allow users of your application to log in using their Twitter account. Doing this has been made easy with tools such...

  4. Authentication in Rails Using Clearance

    Authentication in Rails Using Clearance

    Tutorial Beginner

    Clearance is a simple authentication system with email and password built by the team at Thoughtbot. It has opinionated defaults but is intended to be easy...

  5. Building Your First Web Scraper, Part 3

    Building Your First Web Scraper, Part 3

    Tutorial Beginner

    In this tutorial, we will cover in detail how we extracted the data, how the helper and utility methods accomplish their jobs, and how all the puzzle pieces...

  6. Uploading Files With Rails and Shrine

    Uploading Files With Rails and Shrine

    Tutorial Intermediate

    You will learn how to present a file uploading feature in your Rails application with the Shrine gem. This gem is built with a modular approach, providing...

  7. Building Your First Web Scraper, Part 2

    Building Your First Web Scraper, Part 2

    Tutorial Beginner

    In this tutorial, you will learn how you can use Mechanize to click links, fill out forms, and upload files. You'll also learn how you can slice Mechanize...

  8. Building Your First Web Scraper, Part 1

    Building Your First Web Scraper, Part 1

    Tutorial Beginner

    Rubyland has two gems that have occupied the web scraping spotlight for the past few years: Nokogiri and Mechanize. We spend an article on each of these...

  9. Processing Forms With phpPress, goPress, rubyPress, and nodePress

    Processing Forms With phpPress, goPress, rubyPress, and nodePress

    Tutorial Intermediate

    Now that you have a website running with phpPress, goPress, rubyPress, and/or nodePress, you might want to process some forms. In this tutorial, I'll show...

  10. Exploring Devise, Part 2

    Exploring Devise, Part 2

    Tutorial Beginner

    In the first part of the tutorial, we learned how to install Devise and set it up in our Rails application. In this part, we will look at how to integrate...

  11. Getting Started With the Asset Pipeline, Part 2

    Getting Started With the Asset Pipeline, Part 2

    Tutorial Beginner

    By the end of this article you should have a good understanding of the features of the Asset Pipeline in Rails that beginners usually have a tricky time...

  12. Getting Started With the Asset Pipeline, Part 1

    Getting Started With the Asset Pipeline, Part 1

    Tutorial Beginner

    In this first article of a new series on the Asset Pipeline in Rails, I’d like to discuss a few high-level concepts that are handy to fully grasp what the...