Preface
1. Ruby on Rails Install How-to
1.1. Development System
After the Installation?
1.2. Ruby on Rails 4.0 on Debian 7.1 (Wheeze)
Preparations
Installing Ruby 2.0.0 and Ruby on Rails 4.0 with RVM
1.3. Ruby on Rails 4 on Windows
1.4. Ruby on Rails 4 on Mac OS X 10.7
Xcode Installation or Upgrade
Installing Ruby 2.0.0 and Ruby on Rails 4.0 with RVM
2. Ruby Basics
2.1. Introduction
2.2. Hello World
puts and print
Comments
Help via ri
2.3. irb
Comments in irb
2.4. Ruby is Object-Oriented
Methods
Classes
2.5. Variables
Naming Conventions
Strings
Integers
Boolean Values and nil
Scope of Variables
2.6. Methods Once Again
Getters and Setters
Built-In Methods for String
Method Chaining
Converting from One to the Other: Casting
Method to_s for Your Own Classes
Is + a Method?
2.7. if-Condition
Shorthand
else
elsif
2.8. Loops
while and until
Blocks and Iterators
2.9. Arrays and Hashes
Arrays
Hashes
2.10. Miscellaneous
Range
3. First Steps with Rails
3.1. Introduction
Environment (Development)
Why Is It All in English?
3.2. Static Content (HTML and Graphics Files)
Create Rails Project
Static Pages
3.3. Creating HTML Dynamically with erb
Programming in an erb File
Layouts
Passing Instance Variables from a Controller to a View
Partials
3.4. Redirects
redirect_to :back
3.5. Flash Messages
Different Types of Flash Message
Different Syntaxes
Why Are There Flash Messages At All?
3.6. The Rails Console
app
3.7. Misc
"Model View Controller" Architecture (MVC)
What is a Generator?
Helper
Rails Lingo
4. ActiveRecord
4.1. Howto for this Chapter
Not in the Mood for SQL?
4.2. Creating Database/Model
The Attributes id, created_at and updated_at
Getters and Setters
Possible Data Types in ActiveRecord
Naming Conventions (Country vs. country vs. countries)
Database Configuration
4.3. Adding Records
create
new
new_record?
4.4. first, last and all
4.5. Populating the Database with seeds.rb
It's all just Ruby code
Generating seeds.rb From Existing Data
4.6. Searching and Finding with Queries
find
where
order and reverse_order
limit
group
pluck
first_or_create and first_or_initialize
Calculations
SQL EXPLAIN
Batches
4.7. Editing a Record
Simple Editing
changed?
update_attributes
Locking
4.8. has_many – 1:n Association
Creating Records
Accessing Records
Searching For Records
delete and destroy
Options
4.9. Many-to-Many – n:n Association
Preparation
The Association
The Association Works Transparent
4.10. has_one – 1:1 Association
Preparation
Association
Console Examples
has_one vs. belongs_to
4.11. Polymorphic Associations
Options
4.12. Delete/Destroy a Record
destroy
delete
4.13. Transactions
4.14. Scopes
Preparation
Defining a Scope
Passing in Arguments
Creating New Records with Scopes
4.15. Validation
Preparation
The Basic Idea
presence
length
numericality
uniqueness
inclusion
exclusion
format
General Validation Options
Writing Custom Validations
Further Documentation
4.16. Migrations
Which Database is Used?
Creating Index
Miscellaneous
Further Documentation
4.17. Miscellaneous
Callbacks
Default Values
5. Scaffolding and REST
5.1. Introduction
5.2. Generating a Scaffold
Creating the Database with Sample Data
The Routes
The Controller
The Views
5.3. When Should You Use Scaffolding?
Example for a Minimal Project
Conclusion
6. Routes
6.1. Introduction
6.2. HTTP GET Requests for Singular Resources
Naming a Route
as
to
Parameters
Constraints
Redirects
6.3. root :to => 'welcome#index'
6.4. resources
Selecting Specific Routes with only: or except:
Nested Resources
6.5. Further Information on Routes
7. Tests
7.1. Introduction
7.2. Example for a User in a Web Shop
Functional Tests
Unit Tests
7.3. Fixtures
Static Fixtures
Fixtures with ERB
7.4. Integration Tests
7.5. rake stats
7.6. More on Testing
8. Cookies and Sessions
8.1. Cookies
Permanent Cookies
Signed Cookies)
8.2. Sessions
Breadcrumbs via Session
reset_session
Saving Sessions in the Database
9. Action Mailer
9.1. Configuring the E-Mail Server
Sending via Local Sendmail
Sending via Direct SMTP
9.2. Custom X-Header
9.3. HTML E-Mails
9.4. Attachments
Inline Attachments
9.5. Further Information
10. Internationalization
10.1. Introduction
I18n.t
Localized Views
10.2. A Rails Application in Only One Language: German
Paths in German
10.3. Multilingual Rails Application
Using I18n.locale for Defining the Default Language
Multilingual Scaffolds
10.4. Further Information
11. Bundler and Gems
11.1. Gems
11.2. Bundler
bundle update
bundle outdated
bundle exec
Further Information on Bundler
12. Asset Pipeline
12.1. Introduction
Manifest Files
rake assets:precompile
The Fingerprint
12.2. Coding Links to an Asset
Coding Link to an Image
Coding Link to a JavaScript File
Coding Link to a CSS File
Defaults in the application.html.erb
13. JavaScript
13.1. Introduction
jQuery
CoffeeScript
13.2. JavaScript Helpers
javascript_tag
link_to_function
button_to_function
13.3. Example
Changing Form Depending on Input
14. Forms
14.1. The Data-Input Workflow
Request the people#new form
Push the Data to the Server
Present the new Data
14.2. Generic Forms
14.3. FormTagHelper
14.4. Alternatives
15. Caching
15.1. Introduction
A Simple Example Application
Normal Speed of the Pages to Optimize
15.2. HTTP Caching
Last-Modified
Etag
The Magic of touch
stale?
Using Proxies (public)
Cache-Control With Time Limit
15.3. Fragment Caching
Enabling Fragment Caching in Development Mode
Caching Table of Index View
Deleting Fragment Cache
Auto-Expiring Caches
Cache Store
15.4. Page Caching
Activating Page Caching in Development Mode
Configure our Webserver
Caching Company Index and Show View
Deleting Page Caches Automatically
15.5. Preheating
16. Web Server in Production Mode
16.1. Introduction
16.2. Debian 7.1
Buildsystem
Node.js
nginx
User Deployer
Database
Memcache
16.3. Setting Up a New Rails Project
Adapting Gemfile
Production Database Configuration
Unicorn Configuration
rake db:migration
rake assets:precompile
Unicorn Init Script
nginx Configuration
Loading Updated Versions of the Rails Project
16.4. Misc
Alternative Setups
What Else There Is To Do
404 and Co.
Multiple Rails Servers on One System
16.5. Cloud Platform as Service Provider
17. Tips and Tricks
17.1. Abbreviations
17.2. Templates
Scaffold Controller Template
Model Template
A. Further Rails Documentation
A.1. Online
Index

Thank you for your support and the visibility by linking to this website on Twitter and Facebook. That helps a lot!