Presentation is loading. Please wait.

Presentation is loading. Please wait.

Creating Web Services with Ruby on Rails Robert Thew Internet and Web Systems II.

Similar presentations


Presentation on theme: "Creating Web Services with Ruby on Rails Robert Thew Internet and Web Systems II."— Presentation transcript:

1 Creating Web Services with Ruby on Rails Robert Thew Internet and Web Systems II

2 What is Ruby? Ruby is a language created in Japan in 1995 by Yukihiro Matsumoto It’s an Object-Oriented language that also has elements of Functional languages Matsumoto wanted to create a language that combined all his favorite features into one language

3 Basics of Ruby

4 Ruby on Rails A Model-View-Controller Web Framework for Ruby developed in 2004 by David Heinemeier Hansson Guiding principle is Convention over Configuration Very little boilerplate code Small classes with short methods Allows for rapid development

5 Installation Ruby and RoR come installed on MacPros Can be downloaded and installed from: – ruby-lang.org – rubyonrails.org MySQL can be downloaded from mysql.com

6 Building an Application Run the rails command to create a new application framework Go into the new directory and edit the database config file Add user and password for development entry $rails new biblio $cd bilblio $vi config/database.yml

7 Create Database Create an empty development database instance $rake db:create

8 Test Application

9 Add Model

10 Generate Controller

11 Generate Views

12 Run Application

13 Add Data

14 View Data


Download ppt "Creating Web Services with Ruby on Rails Robert Thew Internet and Web Systems II."

Similar presentations


Ads by Google