The Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow. Text content is released under Creative Commons BY-SA. See credits at the end of this book whom contributed to the various chapters. Images may be copyright of their respective owners unless otherwise specified
Book created for educational purposes and is not affiliated with group(s), company(s) nor Stack Overflow. All trademarks belong to their respective company owners
https://goalkicker.com/
Content
1-1Content list
1-2About
1-3Chapter 1: Getting started with Ruby on Rails
1-4Section 1.1: Creating a Ruby on Rails Application
1-5Section 1.2: Create a new Rails app with your choice of database and including the RSpec Testing Tool
1-6Section 1.3: Generating A Controller
1-7Section 1.4: Installing Rails
1-8Section 1.5: Create a new Rails app with a non-standard database adapter
1-9Section 1.6: Creating Rails APIs in JSON
1-10Section 1.7: Generate a Resource with Scaolds
1-11Chapter 2: Routing
1-12Section 2.1: Resource Routing (Basic)
1-13Section 2.2: Constraints
1-14Section 2.3: Scoping routes
1-15Section 2.4: Concerns
1-16Section 2.5: Root route
1-17Section 2.6: Split routes into multiple files
1-18Section 2.7: Additional RESTful actions
1-19Section 2.8: Member and Collection Routes
1-20Section 2.9: Mount another application
1-21Section 2.10: Nested Routes
1-22Section 2.11: Redirection
1-23Section 2.12: Redirects and Wildcard Routes
1-24Section 2.13: Scope available locales
1-25Section 2.14: URL params with a period
1-26Chapter 3: ActiveRecord
1-27Section 3.1: Creating a Model via generator
1-28Section 3.2: Introduction to Callbacks
1-29Section 3.3: Creating a Model manually
1-30Section 3.4: Manually Testing Your Models
1-31Section 3.5: Creating A Migration
1-32Section 3.6: Create a Join Table using Migrations
1-33Section 3.7: Using a model instance to update a row
1-34Chapter 4: Views
1-35Section 4.1: Structure
1-36Section 4.2: Partials
1-37Section 4.3: AssetTagHelper
1-38Section 4.4: Replace HTML code in Views
1-39Section 4.5: HAML - an alternative way to use in your views
1-40Chapter 5: ActiveRecord Migrations
1-41Section 5.1: Adding multiple columns to a table
1-42Section 5.2: Add a reference column to a table
1-43Section 5.3: Rollback migrations
1-44Section 5.4: Add a new column with an index
1-45Section 5.5: Run specific migration
1-46Section 5.6: Redo migrations
1-47Section 5.7: Add a new column to a table
1-48Section 5.8: Remove an existing column from a table
1-49Section 5.9: Add column with default value
1-50Section 5.10: Running migrations in dierent environments
1-51Section 5.11: Create a new table
1-52Section 5.12: Running migrations
1-53Section 5.13: Change an existing column’s type
1-54Section 5.14: Create a hstore column
1-55Section 5.15: Create a join table
1-56Section 5.16: Add a self reference
1-57Section 5.17: Create an array column
1-58Section 5.18: Add an unique column to a table
1-59Section 5.19: Checking migration status
1-60Section 5.20: Changing Tables
1-61Section 5.21: Adding a NOT NULL constraint to existing data
1-62Section 5.22: Forbid null values
1-63Chapter 6: Rails Best Practices
1-64Section 6.1: Fat Model, Skinny Controller
1-65Section 6.2: Domain Objects (No More Fat Models)
1-66Section 6.3: Beware of default_scope
1-67Section 6.4: Convention Over Configuration
1-68Section 6.5: Don't Repeat Yourself (DRY)
1-69Section 6.6: You Ain’t Gonna Need it (YAGNI)
1-70Chapter 7: Naming Conventions
1-71Section 7.1: Controllers
1-72Section 7.2: Models
1-73Section 7.3: Filenames and autoloading
1-74Section 7.4: Views and Layouts
1-75Section 7.5: Models class from Controller name
1-76Chapter 8: ActionCable
1-77Section 8.1: User Authentication
1-78Section 8.2: [Basic] Server Side
1-79Section 8.3: [Basic] Client Side (Coeescript)