Ruby on Rails 101
Introduction
Installing Rails
Create a new Rails app with your choice of database and including the RSpec Testing Tool
Creating a Ruby on Rails Application
Generating A Controller
Create a new Rails app with a non-standard database adapter
Creating Rails APIs in JSON
Generate a Resource with Scaffolds
Routing
Resource Routing (Basic).md)
Constraints
Scoping routes
Concerns
Root route
Member and Collection Routes
Split routes into multiple files
Mount Another Application
Redirection
Redirects and Wildcard Routes
Scope available locales
Nested Routes
Active Record
Creating a Model via generator
Creating a Model manually
Introduction to Callbacks
Create a Join Table using Migrations
Creating A Migration
Manually Testing Your Models
Using a model instance to update a row
Active Record Migrations
Adding multiple columns to a table
Add a reference column to a table
Rollback migrations
Add a new column with an index
Add a new column to a table
Redo migrations
Run specific migration
Change an existing column’s type
Create a new table
Remove an existing column from a table
Running migrations
Running migrations in different environments
Add a self reference
Add column with default value
Create a join table
Add an unique column to a table
Checking migration status
Create a hstore column
Adding a NOT NULL constraint to existing data
Changing Tables
Create an array column
Forbid null values
Active Record Validations
Validating length of an attribute
Validating presence of an attribute
Custom validations
Validates format of an attribute
Group Validations
Validating numericality of an attribute
Skipping Validations
Validate uniqueness of an attribute
Validates inclusion of an attribute
Conditional validation
Using :on option
Confirmation of attribute
Active Record Associations
belongs_to
Polymorphic association
has_many
has_one
Self-Referential Association
has_and_belongs_to_many association
has_many :through association
has_one :through association
Active Record Query Interface
.where
.where with an array
Get first and last record
Scopes
Includes
Ordering
where.not
.delete_all
.distinct
.find_by
.group and .count
ActiveRecord case insensitive search
Joins
Limit and Offset
Active Record Transactions
Getting Started with Active Record Transactions
Naming Conventions
Controllers
Models
Filenames and Autoloading
Views and Layouts
Models Class From Controller Name
User Authentication in Rails
Authentication using Devise
Devise Controller Filters & Helpers
Omniauth
has_secure_password
has_secure_token
Active Record Locking
Optimistic Locking
Pessimistic Locking
Debugging
Debugging Rails Application
Debugging Ruby on Rails Quickly + Beginner advice
Debugging in your IDE
ActionMailer
Basic Mailer
Generating a new mailer
ActionMailer Callbacks
Adding Attachments
Grouping validation
Class Organization
Service Class
Model Class
Caching
Action caching
Fragment caching
HTTP caching
Page caching
Russian Doll Caching
SQL Caching
Configuration
Configuring assets
Configuring generators
Database Configuration
Environments in Rails
Rails General Configuration
Rails Best Practices
Fat Model, Skinny Controller
Service Objects (No More Fat Models).md)
Convention Over Configuration
Beware of default_scope
Don't Repeat Yourself (DRY).md)
You Ain’t Gonna Need it (YAGNI).md)
Style Guide
Configuration
Routing
Authorization with CanCan
Getting started with CanCan
Handling large number of abilities
Defining abilities
Quickly test an ability
Shallow Routing
Use of Shallow
Turbolinks
Binding to turbolink's concept of a page load
Cancelling visits before they begin
Disable turbolinks on specific links
Persisting elements across page loads
Understanding Application Visits
Time
Change Default TimeZone
Asset Pipeline
Manifest Files and Directives
Rake tasks
ActionCable
User Authentication
[Basic] Client Side (Coffeescript).md)
[Basic] Server Side
Rails Logger
Gems
Rails Generate Commands
Interview Questions
Powered by
GitBook
Class Organization
results matching "
"
No results matching "
"