Tutorial

Help Center Ruby on Rails Tutorial

This tutorial was created by rubyonrails.org the official website of the Rails framework. This ensures the material stays up to date and is as accurate as possible. It is designed to be read through step by step.

Guide Assumptions
Brief outline of the assumptions made by the guide.

What is Rails?
Explanation of principles behind rails. Skim lightly and refer back to this throughout the guide to understand the terms and theory behind each step.

Creating a new rails project
Creating the file structure, using rails generators, to store and run our Ruby on Rails code.

Hello, Rails!
Displaying text with rails on a web page by generating a controller, modifying a view, and running the rails project.

Getting Up and Running Quickly with Scaffolding and Creating a Resource
Guide to making the best of scaffold code generators and an introduction into RESTful resources by generating blog resources.

Adding a Second Model
Adding comments to our blog by generating a comments model and working closely with controller routing.

Refactoring
Simplifying and consolidating our views by utilizing view partials.

Deleting Comments
Using ActiveRecord to manage our database using native ruby objects

Building a Multi Model Form
Creating a Tag model to allow our posts to be tagged and using the form builder with multiple models.

Security
Securing sections of our blog from the public with the built in http_basic_authenticate_with function.

View Helpers
Creating helper functions to consolidate and clean up code used in views.

Configuration Gotchas
Catching some of the common encoding errors when developing with Rails.

Share this page Share