Ruby Programming & Ruby on Rails

Course Code: RUBYPR

Duration: 5 days

 
 
 
 

Ruby Programming & Ruby on Rails Course Overview

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

This Ruby Programming & Ruby on Rails course is designed to give delegates the knowledge to develop and maintain Ruby applications and Rails based projects.

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

Course Objectives

This course aims to provide the delegate with the knowledge to be able to produce simple, object oriented Ruby applications, and develop and maintain Rails based projects that exploit all core elements of the language to solve business problems.

Who will the Course Benefit?

Developers who are required to write, maintain and test Ruby applications and projects based on Ruby on Rails.

Skills Gained

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

Ruby Programming & Ruby on Rails Training Course

Course 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

Ruby Programming & Ruby on Rails Training Course

Session 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

Ruby Programming & Ruby on Rails Training Course

Session 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

Ruby Programming & Ruby on Rails Training Course

Session 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

Ruby Programming & Ruby on Rails Training Course

Session 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
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.

Requirements

Delegates attending this course should have some previous programming experience and be able to define general programming concepts including: compilation, execution, variables, arrays, sequence, selection, iteration, functions, objects, and classes. Moreover delegates should be able to navigate the filesystem (on the command line ideally), edit and save text files and browse the web. This knowledge can be obtained by attendance on the pre-requisite Introduction to Programming course.

Pre-Requisite Courses

Course Reviews

Brian was the perfect instructor. He was clear and gave great examples as we worked through the content. He allowed us several opportunities to raise questions. The pace of the course was great. I would highly recommend this course for gaining a basic understanding of Ruby and Rails. I can't recommend Brian enough.

Alex - Senior Software Engineer - Government - March 2023

Brian was very knowledgeable and made the subject interesting and relevant to what I needed to know for my work in this area. Very enjoyable.

Paul - IT

The instructor did very well in answering questions. Although I've been using Ruby for 7 years, I still took new things away from this course.

Thomas - SDET - Government

Thanks very much to the trainer. A brilliant lecturer, a pleasure to be part of the class.

Rhys - HEO

Tony is clearly enthusiastic about the subject matter, and this comes through during the teaching, which is excellent and especially important in the current environment we're in. Very relaxed style of teaching that allows for a large amount of information to be given and digested easily without feeling overwhelming Overall excellent, very well taught course

Samuel - Software Engineer

The course was excellent and paced well. As a student who is completely new to ruby and rails my only request would be a more gradual approach to the rails section similar to what was done during the ruby section.

Adam

Public Scheduled Events

Classroom & Live Virtual Instructor-Led Training

Duration: 5 days

Price: £2,625.00 exc. VAT 


Start Date Options Spaces  
15 Apr 2024
StayAhead Virtual Courses available 
Spaces Book Now 
15 Jul 2024
StayAhead Virtual Courses available 
Spaces Book Now 
14 Oct 2024
StayAhead Virtual Courses available 
Spaces Book Now 
 

Live Virtual Classroom

 
Join live instructor-led classroom training from the comfort of your home or office.
All the convenience and benefits of the classroom experience without the hassle and costs of travel and accommodation.
 
 



Our Customers Include

 
EDF
Amazon
American Express
Aviva
QA
BAE
University of Cambridge
Barnardo's
Scottish Government
Bauer
Bloomberg
BP
HSBC
DVLA
GlaxoSmithKline
Government Campus
Capita
Tui
NHS
Ordnance Survey
Ministry of Defence
Zurich Insurance Group
trainline
Vodafone
 
 



Our Course Curriculum

 
 
 
+44 (0)20 7600 6116
Enquiries@StayAhead.com
Copyright © 2024 StayAhead Training Ltd
Cookies   /   Privacy Policy