Welcome to our Rails tutorials section! Whether you're a beginner or looking to enhance your skills, these tutorials will guide you through the basics and advanced concepts of Ruby on Rails.

Getting Started

Before diving into the tutorials, make sure you have Ruby and Rails installed on your system. You can find detailed installation guides here.

Tutorials

1. Rails Basics

  • What is Rails? Rails is a web application framework written in Ruby, which follows the convention over configuration (CoC) principle.
  • Rails Environment Learn about the different environments in Rails: development, test, and production.
  • Rails Routing Understand how to define routes in Rails applications.

2. Active Record

  • Active Record Basics Learn the basics of Active Record, the ORM (Object-Relational Mapping) layer in Rails.
  • Migrations Learn how to create and manage database migrations in Rails.
  • ** Associations** Explore the different types of associations between models, such as has_many, belongs_to, and has_and_belongs_to_many.

3. Action Controller

  • Action Controller Basics Understand the role of controllers in Rails applications.
  • Rendering Views Learn how to render views and pass data to them.
  • Filters and Callbacks Explore the use of filters and callbacks in controllers.

4. Action View

  • Action View Basics Learn the basics of Action View, the templating engine in Rails.
  • Layouts and Partials Understand how to use layouts and partials in your views.
  • Form Helpers Explore the various form helpers available in Action View.

5. Testing

  • Rails Testing Basics Learn the basics of testing in Rails applications.
  • Unit Testing Understand how to write unit tests for your models and controllers.
  • Integration Testing Explore integration testing with Capybara and RSpec.

Resources

  • Rails Guides - The official documentation for Rails.
  • RailsCasts - A collection of screencasts that cover various Rails topics.

Rails Logo