ruby on rails Training
RUBY ON RAILS ONLINE LIVE TRAINING |BEST TRAINING BY INDUSTRY EXPERTS PDF  | Print |  E-mail

Introduction:

Up and running

Development environments

IDEs

Text editors and command lines

Browsers

A note about tools

Ruby, RubyGems, Rails, and Git

Install Git

Install Ruby

Install RubyGems

Install Rails

The first application

Bundler

rails server

Model-view-controller (MVC)

Version control with Git

Installation and setup

First-time system setup

First-time repository setup

Adding and committing

What good does Git do you?

GitHub

Branch, edit, commit, merge

Branch

Edit

Commit

Merge

Push

Deploying

Heroku setup

Heroku deployment, step one

Heroku deployment, step two

Heroku commands

A demo app:

Planning the application

Modeling users

Modeling microposts

The Users resource

A user tour

MVC in action

Weaknesses of this Users resource

The Microposts resource

A micropost microtour

Putting the micro in microposts

A user has_many microposts

Inheritance hierarchies

Deploying the demo app

Static pages:

Truly static pages

Static pages with Rails

Our first tests

Testing tools

Autotest

TDD: Red, Green, Refactor

Spork

Red

Green

Refactor

Slightly dynamic pages

Testing a title change

Passing title tests

Instance variables and Embedded Ruby

Eliminating duplication with layouts

Rails-flavored Ruby:

Motivation

A title helper

Cascading Style Sheets

Strings and methods

Comments

Strings

Printing

Single-quoted strings

Objects and message passing

Method definitions

Back to the title helper

Other data structures

Arrays and ranges

Blocks

Hashes and symbols

CSS revisited

Ruby classes

Constructors

Class inheritance

Modifying built-in classes

A controller class

A user class

Filling in the layout:

Adding some structure

Site navigation

Custom CSS

Partials

Layout links

Integration tests

Rails routes

Named routes

User signup: A first step

Users controller

Signup URL

Modeling and viewing users, part I:

User model

Database migrations

The model file

Model annotation

Accessible attributes

Creating user objects

Finding user objects

Updating user objects

User validations

Validating presence

Length validation

Format validation

Uniqueness validation

The uniqueness caveat

Viewing users

Debug and Rails environments

User model, view, controller

A Users resource

params in debug

Modeling and viewing users, part II:

Insecure passwords

Password validations

A password migration

An Active Record callback

Secure passwords

A secure password test

Some secure password theory

Implementing has_password?

An authenticate method

Better user views

Testing the user show page (with factories)

A name and a Gravatar

A Gravatar helper

A user sidebar

Git commit

Heroku deploy

Sign up:

Signup form

Using form_for

The form HTML

Signup failure

Testing failure

A working form

Signup error messages

Filtering parameter logging

Signup success

Testing success

The finished signup form

The flash

The first signup

RSpec integration tests

Integration tests with style

Users signup failure should not make a new user

Users signup success should make a new user

Sign in, sign out:

Sessions

Sessions controller

Signin form

Signin failure

Reviewing form submission

Failed signin (test and code)

Signin success

The completed create action

Remember me

Current user

Signing out

Destroying sessions

Signin upon signup

Changing the layout links

Signin/out integration tests

Updating, showing, and deleting users:

Updating users

Edit form

Enabling edits

Protecting pages

Requiring signed-in users

Requiring the right user

Friendly forwarding

Showing users

User index

Sample users

Pagination

Testing pagination

Partial refactoring

Destroying users

Administrative users

Revisiting attr_accessible

The destroy action

User microposts:

A Micropost model

The basic model

Accessible attribute

User/Micropost associations

Micropost refinements

Default scope

Dependent: destroy

Micropost validations

Showing microposts

Augmenting the user show page

Sample microposts

Manipulating microposts

Access control

Creating microposts

A proto-feed

Destroying microposts

Testing the new home page

Following users:

The Relationship model

A problem with the data model (and a solution)

User/relationship associations

Validations

Following

Followers

web interface for following and followers

Sample following data

Stats and a follow form

Following and followers pages

A working follow button the standard way

A working follow button with Ajax

The status feed

Motivation and strategy

A first feed implementation

Scopes, subselects, and a lambda

The new status feed

Extensions to the sample application

Replies

Messaging

Follower notifications

Password reminders

Signup confirmation

RSS feed

REST API

Search