- Course Length:
- 5 Days
- Course Description:
- This course combines the following courses into a single course:
Ruby Programming
Ruby on Rails 3
The description of each course is listed below:
This course covers the fundamental components of the Ruby Programming Language. Emphasis is placed on the object oriented aspects of Ruby. Topics include arrays, hashes, regular expressions, io, exceptions, modules, and applications areas.
This course describes how to write database-backed Web Applications using the Ruby on Rails (also pronounced RoR, or Rails) Framework. Students are taken through the various steps of creating a full-fledged Web Application. Topics include static and dynamic pages, sign up forms, signing in and out, sessions, managing users, and various other Rails topics. - Who Should Attend:
- This course combines several courses, the descriptions for who should attend are listed below: This course is intended primarily for those who have programmed in other programming languages such as, but not limited to, C, C++, Java, or Perl. A typical student in this course has either been tasked with writing a Rails application, or has been tasked with evaluating the Rails framework. Thus, this course should be attended by developers and managers alike, and possibly system administrators.
- Benefits of Attendance:
-
Upon completion of this course, students will be able to:
- Distinguish and use various Ruby datatypes
- Master the use of arrays and hashes
- Build home grown classes
- Use the extensive pre bundled classes
- Use the I/O facilities of Ruby to read and write binary and text files
- Master the use of Iterators to loop through various data structures
- Use Exceptions in handling various run time errors
- Create Ruby modules
- Use the wide variety of Ruby Modules that come with the Ruby distribution
- Install and set up the development environment.
- Understand and create a basic Rails application.
- Create static pages.
- Understand the Ruby language underlying Rails.
- Create a site layout, user data model, and full registration and authentication system.
- Add microblogging and social features.
- Prerequisites:
- Students should have taken the Software Development for Non-Programmers course or have at least six months of programming experience in at least one programming language. Students should have been through a course in the Ruby Programming language. They should also have an understanding of HTML. Students should also have experience with a SQL compliant database such as MySQL.
- Course Outline:
-
- Chapter 1: An Overview Of Ruby (Part 1)
- What is Ruby?
- Executing Ruby Code
- Getting Input
- Comments
- Numbers
- Strings
- The Class Class
- Decision Making
- The case Construct
- Loops
- Iterators
- Regular Expressions
- Functions
- Odds and Ends
- Time Methods
- Chapter 2: An Overview of Ruby (Part 2)
- Arrays
- Array Operator Methods
- Array Equality Operator
- Arrays as Stacks and Queues
- Higher Dimensional Arrays
- Other Useful Arrays Methods
- Command Line Arguments
- Hashes
- Common Hash Methods
- Sorting Hashes
- Iterators with Arrays and Hashes
- Arrays and Functions
- Hashes and Functions
- Named Parameters
- Symbols
- Procs
- Closures
- Chapter 3: Classes
- Objects
- Brief History of OOP
- OOP Vocabulary
- Creating a New Class
- Using Objects
- Defining Operator Methods
- Inheritance
- Ancestors
- self
- Access Levels - public
- Access Levels – private
- Access Levels - protected
- Access Levels - Specification
- Class Data and Class Methods
- Adding Methods to Classes and Objects
- Special Global Variables
- Scope of Variables
- Built-in Classes
- The Math Class
- The NilClass Class
- TrueClass and FalseClass
- Built-in Class Hierarchy
- Chapter 4: Input and Output
- Introduction
- Reading from the Standard Input
- Reading a Character at a Time
- Writing to the Standard Output
- Reading and Writing Disk Files
- Reading Files Using Iterators
- I/O With Command Line Commands
- Seeking About Files
- tell
- Capturing Data About Files
- Processing Directories
- Chapter 5: Exceptions
- Introduction
- Exceptions
- Handling Exceptions
- Multiple Rescue Clauses
- Exceptions are Classes
- ensure
- retry
- raise
- Creating Your Own Exceptions
- catch and throw
- Chapter 6: Modules
- Introduction
- Using Core Ruby Classes
- Ruby Standard Library
- require
- Search Path
- File Organization
- Load
- Modules
- include
- Mixins
- Using the Comparable Module
- Collection Classes
- yield
- Using the Enumerable Module
- Chapter 7: Odds and Ends
- Ruby Conventions
- Strings Are References
- The Selection Operator, [ ]
- Index Methods
- Stripping Whitespace Characters
- Bit Manipulation
- The upto Method
- Substituting
- Processing a Line at a Time
- Marshalling
- Reflection
- grep
- Classes are Objects
- Aliasing
- Testing
- Test::Unit
- Testing Your Own Classes
- Freezing Objects
- From Zero to Deploy
- Introduction
- Up and Running
- Version Control with Git
- Deploying
- A Demo App
- Planning the Application
- The Users Resource
- A Microposts Resource
- Mostly Static Pages
- Static Pages
- Our First Tests
- Slightly Dynamic Pages
- Exercises
- Rails Flavored Ruby
- Motivation
- Strings and Methods
- Other Data Structures
- Ruby Classes
- Exercises
- Filling in the Layout
- Adding Some Structure
- Layout Links
- User Signup: A first Step
- Exercises
- Modeling and Viewing Users
- User Model
- User Validations
- Viewing Users
- Exercises
- Insecure Passwords
- Secure Passwords
- Better User Views
- Exercises
- Sign Up
- Signup Form
- Signup Failure
- Signup Success
- RSpec Integration Tests
- Exercises
- Sign In, Sign Out
- Sessions
- Signin Failure
- Signin Success
- Signing Out
- Exercises
- Updating, Showing, and Deleting Users
- Updating Users
- Protecting Pages
- Showing Users
- Destroying Users
- Exercises
- User Microposts
- A Micropost Model
- Showing Microposts
- Manipulating Microposts
- Exercises
- Following Users
- A Relationship Model
- A Web Interface for Following and Followers
- The Status Feed
- Exercises
- Chapter 1: An Overview Of Ruby (Part 1)













