Browse Courses

Ruby on Rails

Course Description



1Basic Fundamentals

  • Introduction of Ruby on Rails.
  • Installation process of Ruby on rails
  • MVC structure
  • How to run basic Ruby on rails application
  • Rails framework structure
  • Generator of rails
  • Test cases in Rails
  • Debagging in ruby on rails

Chapter 2 : From zero to deploy 

1From zero to deploy

  • Introduction

                ---Conventions in this book

  • Up and running

                ---Development environment
                ---Installing Rails

  • The first application

                ---Rails server
                ---Model-View-Controller (MVC)
                ---Hello, world!

  • Version control with Git

                ---Installation and setup
                ---What good does Git do you?
                ---Branch, edit, commit, merge

  • Deploying

                ---Heroku setup
                ---Heroku deployment, step one
                ---Heroku deployment, step two
                ---Heroku commands

  • Conclusion

                ---What we learned in this chapter

Chapter 3 : A toy app 

1A toy app

  • Planning the application

                ---A toy model for users
                ---A toy model for microposts

  • The Users resource

                ---A user tour
                ---MVC in action
                ---Weaknesses of this Users resource

  • The Microposts resource

                ---A micropostmicrotour
                ---Putting the micro in microposts
                ---A user has_manymicroposts
                ---Inheritance hierarchies
                ---Deploying the toy app

  • Conclusion

                ---What we learned in this chapter

Chapter 4 : Mostly static pages 

1Mostly static pages

  • Sample app setup

                ---Static pages
                ---Generated static pages
                ---Custom static pages

  • Getting started with testing

                ---Our first test

  • Slightly dynamic pages

                ---Testing titles (Red)
                ---Adding page titles (Green)
                ---Layouts and embedded Ruby (Refactor)
                ---Setting the root route

  • Conclusion

                ---What we learned in this chapter

  • Advanced testing setup

                ---Minitest reporters
                ---Backtrace silencer
                ---Automated tests with Guard

Chapter 5 : Rails-flavored Ruby 

1Rails-flavored Ruby

  • Motivation

                ---Strings and methods
                ---Objects and message passing
                ---Method definitions
                ---Back to the title helper

  • Other data structures

                ---Arrays and ranges
                ---Hashes and symbols
                ---CSS revisited

  • Ruby classes

                ---Class inheritance
                ---Modifying built-in classes
                ---A controller class
                ---A user class

  • Conclusion

                ---What we learned in this chapter

Chapter 6 : Filling in the layout 

1Filling in the layout

  • Adding some structure

                ---Site navigation
                ---Bootstrap and custom CSS

  • Sass and the asset pipeline

                ---The asset pipeline
                ---Syntactically awesome stylesheets

  • Layout links

                ---Contact page
                ---Rails routes
                ---Using named routes
                ---Layout link tests

  • User signup: A first step

                ---Users controller
                ---Signup URL

  • Conclusion

                ---What we learned in this chapter

Chapter 7 : Modeling users 

1Modeling users

  • User model

                ---Database migrations
                ---The model file
                ---Creating user objects
                ---Finding user objects
                ---Updating user objects

  • User validations

                ---A validity test
                ---Validating presence
                ---Length validation
                ---Format validation
                ---Uniqueness validation

  • Adding a secure password

                ---A hashed password
                ---User has secure password
                ---Minimum password standards
                ---Creating and authenticating a user

  • Conclusion

                ---What we learned in this chapter

  • Exercises

Chapter 8 : Sign up 

1Sign up

  • Showing users

                ---Debug and Rails environments
                ---A Users resource
                ---A Gravatar image and a sidebar

  • Signup form

                ---Using form_for
                ---Signup form HTML

  • Unsuccessful signups

                ---A working form
                ---Strong parameters
                ---Signup error messages
                ---A test for invalid submission

  • Successful signups

                ---The finished signup form
                ---The flash
                ---The first signup
                ---A test for valid submission

  • Professional-grade deployment

                ---SSL in production
                ---Production webserver
                ---Ruby version number

  • Conclusion

                ---What we learned in this chapter

Chapter 9 : Log in, log out 

1Log in, log out

  • Sessions

                ---Sessions controller
                ---Login form
                ---Finding and authenticating a user
                ---Rendering with a flash message
                ---A flash test

  • Logging in

                ---The log_in method
                ---Current user
                ---Changing the layout links
                ---Testing layout changes
                ---Login upon signup

  • Logging out

                ---Remember me
                ---Remember token and digest
                ---Login with remembering
                ---Forgetting users
                ---Two subtle bugs
                ---Remember tests

  • Conclusion

                ---What we learned in this chapter

Chapter 10 : Updating, showing, and deleting users 

1Updating, showing, and deleting users

  • Updating users

                ---Edit form
                ---Unsuccessful edits
                ---Testing unsuccessful edits
                ---Successful edits (with TDD)

  • Authorization

                ---Requiring logged-in users
                ---Requiring the right user
                ---Friendly forwarding

  • Showing all users

                ---Users index
                ---Sample users
                ---Users index test
                ---Partial refactoring

  • Deleting users

                ---Administrative users
                ---The destroy action
                ---User destroy tests

  • Conclusion

                ---What we learned in this chapter

Chapter 11 : Account activation and password reset 

1Account activation and password reset

  • Account activation

                ---Account activations resource
                ---Account activation mailer method
                ---Activating the account
                ---Activation test and refactoring

  • Password reset

                ---Password resets resource
                ---Password resets controller and form
                ---Password reset mailer method
                ---Resetting the password
                ---Password reset test

  • Email in production
  • Conclusion

                ---What we learned in this chapter

  • Proof of expiration comparison

Chapter 12 : User microposts 

1User microposts

  • A Micropost model

                ---The basic model
                ---Micropost validations
                ---User/Micropost associations
                ---Micropost refinements

  • Showing microposts

                ---Rendering microposts
                ---Sample microposts
                ---Profile micropost tests

  • Manipulating microposts

                ---Micropost access control
                ---Creating microposts
                ---A proto-feed
                ---Destroying microposts
                ---Micropost tests

  • Micropost images

                ---Basic image upload
                ---Image validation
                ---Image resizing
                ---Image upload in production

  • Conclusion

                ---What we learned in this chapter

Chapter 13 : Following users 

1Following users

  • The Relationship model

                ---A problem with the data model (and a solution)
                ---User/relationship associations
                ---Relationship validations
                ---Followed users

  • A web interface for following users

                ---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
                ---Following tests

  • The status feed

                ---Motivation and strategy
                ---A first feed implementation

  • Conclusion

                ---Guide to further resources
                ---What we learned in this chapter


Take the world's best courses

and take your career to the next level!

New to Truway? Create a new account

By signing up, you agree to our Terms of Use and Privacy Policy.
Already have an account? Login