Ruby on Rails
About the course
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:
- 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.
Experience of programming in Ruby Programming.
- Ruby Programming
- Apache Web Server
- Introduction to MySQL
- Perl Programming
- PHP Programming
- PHP & MySQL for Web Development
- 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.
Knowledge of Ruby to write, modify, maintain and understand Ruby and Ruby on Rails.
Course Contents - DAY 1
- Administration and Course Materials
- Course Structure and Agenda
- Delegate and Trainer Introductions
Session 1: REST
- What is REST
- RESTful architecture
- A simple REST client
Session 2: 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 3: 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 4: MODELS
- What is a Model
- Using ActiveRecord
Course Contents - DAY 2
Session 5: : CONTROLLERS
- What is a Controller
- Creating controllers
- Using ActionController
- Writing Actions
Session 6: VIEWS
- What is a View
- Exploring ActionView
- Writing Views for actions
Session 7: 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 8: RAILS SCAFFOLDING
- What is Scaffolding
- Creating a new project
- Generating the Rail Scaffold
- Customising the application