Skip to content

Ruby Programming & Ruby on Rails

5 days


TSG Training Limited

Summary

Price
£2,634 inc VAT
Study method
Classroom
Duration
Full-time
Qualification
No formal qualification
Additional info
  • Tutor is available to students

Location & dates

Location
Address
6 Long Ln,
Long Lane
City Of London
London
EC1A9HF
United Kingdom

Overview

Please be aware that before enquiring, course venue may be subject to change. This course is open to corporate bookings and individuals who are self-funding.

Description

Ruby is a high level Interpreted, Object Oriented, rapid development language deployed in many scenarios in the modern world.

This Ruby on Rails course is designed to give delegates the knowledge to develop / maintain Ruby scripts and Rails based projects.

Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.

The delegate will learn and acquire skills as follows:

  • Declare variables and initialise them
  • Construct expressions with arithmetic, logical and relational operators
  • Use iterative type statements
  • Use conditional statements
  • Read/write files
  • Manipulate text using regular expression
  • Use and create Ruby Objects
  • Use built-in library functions
  • Work with REST and describe the purpose of REST and the Rails MVC architecture
  • Use RAILS and describe the purpose of Rails Routes
  • Create a project using Ruby and Rails
  • Create and customise a Rails Application using scaffold and the SQLite3 database

Who will the Course Benefit?

Programmers who need to write & maintain scripts in Ruby and projects based on Ruby on Rails.

Course Objectives

Knowledge of Ruby to write, modify, maintain and understand Ruby and Ruby on Rails.

Requirements

Familiarisation with programming concepts is useful. This knowledge can be obtained by attendance on the Introduction to Programming course.

Follow-On Courses

  • Apache Web Server
  • Introduction to MySQL
  • Perl Programming
  • PHP Programming
  • PHP & MySQL for Web Development

Notes:

  • Course technical content is subject to change without notice.
  • Course content is structured as sessions, this does not strictly map to course timings. Concepts, content and practicals often span sessions.

Course Contents - DAY 1Course Introduction

  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions

Session 1: INTRODUCTION TO RUBY

  • What is Ruby
  • What is it used for
  • Installing Ruby?
  • Ruby Basics - objects, regular expressions, arrays, hashes, Object Orientation

Session 2: RUBY LANGUAGE ELEMENTS

  • Variables and constants
  • Operators
  • Assignments
  • Integer, float and string formats
  • Single and double quotes
  • Here documents
  • Labs

Session 3: CONTROL STRUCTURES

  • Blocks and if statement
  • Boolean and range operators
  • Conditionals - if, unless, case
  • Loops - while, for in, until
  • break, next, retry and redo
  • Labs

Session 4: CLASSES AND OBJECTS

  • Objects, classes and methods
  • Constructors and attributes
  • Instance and class variables
  • Local and global variables
  • Class and object methods
  • Including external files - load and require
  • Labs

Course Contents - DAY 2Session 5: INPUT AND OUTPUT IN RUBY

  • Opening and closing files
  • Reading from and writing to files
  • Labs

Session 6: ARRAYS AND HASHES IN RUBY

  • Arrays and hashes
  • Building an array
  • The %w shortcut
  • Nesting arrays
  • Hash keys
  • Iterators
  • Labs

Session 7: OBJECT ORIENTATION

  • Inheritance
  • Base classes and subclasses
  • What's inherited
  • Overriding
  • Abstract classes
  • Polymorphism
  • Multiple Inheritances
  • Class structure
  • Visibility
  • Labs

Session 8: CLASSES AND OBJECT SCOPING

  • Public, private and protected visibility
  • Singletons and defs
  • Inheritance mixins
  • Destructors and garbage collection
  • Namespaces and modules
  • Hooks
  • Freezing objects
  • Labs

Course Contents - DAY 3Session 9: OBJECT ORIENTATION TECHNIQUES

  • Clusters of classes
  • Programming and method standards
  • Formal Methods
  • Unified Modelling Language (UML)
  • Views

Session 10: STRINGS AND REGULAR EXPRESSIONS

  • Meta Characters
  • Anchors, literals, character groups and counts
  • Matching in Ruby
  • Modifiers i, o, x and m
  • Pattern matching variables
  • Labs

Session 11: SPECIAL VARIABLES AND PSEUDO-VARIABLES

  • ARGV and $0
  • Special variables
  • Environment variables
  • Pseudo-variables
  • Reserved words in Ruby
  • Labs

Session 12: EXCEPTIONS

  • Begin and end
  • Raise and rescue
  • Throw and catch

Course Contents - DAY 4Session 13: REST

  • What is REST
  • RESTful architecture
  • A simple REST client

Session 14: INTRODUCTION TO RUBY ON RAILS

  • Install Ruby on Rails on an operating system
  • The Model-View-Controller approach
  • Rails Conventions
  • Rails project structure
  • Using RubyGems with Rails

Session 15: ROUTING

  • What is a Route
  • Define routes that recognize incoming URLs
  • Use named route methods to generate URLs based on the routing scheme
  • Apply and understand the RESTful routing conventions
  • Design apps to take advantage of the REST conventions in Rails

Session 16: MODELS

  • What is a Model
  • Using ActiveRecord
  • Validations
  • Associations
  • Migrations

Course Contents - DAY 5Session 17: CONTROLLERS

  • What is a Controller
  • Creating controllers
  • Using ActionController
  • Writing Actions
  • Filters

Session 18: VIEWS

  • What is a View
  • Exploring ActionView
  • Writing Views for actions
  • Partials
  • Forms

Session 19: CREATING A RAILS PROJECT

  • Creating the project
  • Project Directory structure
  • Using the Rails web server
  • Creating the initial controller
  • Modify the initial index.html file
  • Setting the Route
  • Creating a resource
  • Viewing routes with rake

Session 20: RAILS SCAFFOLDING

  • What is Scaffolding
  • Creating a new project
  • Generating the Rail Scaffold
  • Customising the application

Questions and answers

Reviews

Currently there are no reviews for this course. Be the first to leave a review.

FAQs

Study method describes the format in which the course will be delivered. At Reed Courses, courses are delivered in a number of ways, including online courses, where the course content can be accessed online remotely, and classroom courses, where courses are delivered in person at a classroom venue.

CPD stands for Continuing Professional Development. If you work in certain professions or for certain companies, your employer may require you to complete a number of CPD hours or points, per year. You can find a range of CPD courses on Reed Courses, many of which can be completed online.

A regulated qualification is delivered by a learning institution which is regulated by a government body. In England, the government body which regulates courses is Ofqual. Ofqual regulated qualifications sit on the Regulated Qualifications Framework (RQF), which can help students understand how different qualifications in different fields compare to each other. The framework also helps students to understand what qualifications they need to progress towards a higher learning goal, such as a university degree or equivalent higher education award.

An endorsed course is a skills based course which has been checked over and approved by an independent awarding body. Endorsed courses are not regulated so do not result in a qualification - however, the student can usually purchase a certificate showing the awarding body's logo if they wish. Certain awarding bodies - such as Quality Licence Scheme and TQUK - have developed endorsement schemes as a way to help students select the best skills based courses for them.