Ruby on What? A brief introduction to Rails Christopher Hoskin Faculty of History 12th Annual IT Support Staff Conference 21st June 2007, St. Catherine's.

Slides:



Advertisements
Similar presentations
Oracle to MySQL Database Migration SQLWays - Migration Software Presentation Copyright (c) Ispirer Systems Ltd. All Rights Reserved.
Advertisements

Chapter 15 © 2010 by Addison Wesley Longman, Inc Origins and Uses of Ruby - Designed by Yukihiro Matsumoto; released in Use spread rapidly.
Creating Web Services with Ruby on Rails Robert Thew Internet and Web Systems II.
Ruby on Rails Tutorial Peter Mosca April, Ruby on Rails Tutorial Ruby History Invented 12 years ago in Japan by Yukihiro Matsumoto Spent first 5.
1 JRuby on Rails GAO ANG Sun Functional Campus Ambassador 1.
Ruby on Rails by Manik Juneja Ruby On Rails. Ruby on Rails by Manik Juneja Rails is a Web Application development framework. Based on the MVC pattern.
Creating Web Services with Ruby on Rails Robert Thew Internet and Web Systems II.
Ruby on Rails a popular web application framework, aimed to increase the speed and ease of web development Ruby on Rails, Tim Zappe.
27-Jun-15 Rails. What is Rails? Rails is a framework for building web applications This involves: Getting information from the user (client), using HTML.
Attribute databases. GIS Definition Diagram Output Query Results.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
Chapter 13 Web Application Infrastructure. Objectives Explain the components and purpose of a web application platform Describe several common webapp.
Introducing FDO Toolbox Jackie Ng. Presentation Overview What is FDO? What is FDO Toolbox? Major Features of FDO Toolbox Demos.
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
Ruby on Rails: An Introduction JA-SIG Summer Conference 2007 Michael Irion The University of Tulsa.
A little engineering on Rails Robert W. Hasker. Goals Intro to the Rails framework ▫Basic concepts: MVC, Active Record ▫A bit of Ruby Using Rails to build.
RUBY ON RAILS It’s so rad. What we’ll cover  What is Ruby?  What is RoR?  Why RoR?  Developing with RoR  Deployment  Demo  Questions.
Ruby on Rails Charles Severance Textbook: Build Your own Ruby on Rails Application by Patrick Lenz (ISBN: )
Rails and Grails. To get started Make sure you have java installed You can get the sdk and jre at:
BIT:Mobile platform Ссылка на документацию.
SQL Server to MySQL Database Migration SQLWays - Migration Software Presentation March 2009 Copyright (c) Ispirer Systems Ltd.
Multiple Cases Access Utilities1 Access & ODBC Managing and Using ODBC Connections P.O. Box 6142 Laguna Niguel, CA
Ruby & rails by Nicholas Belotti. What is ruby Ruby is an object orientated scripting language. In Ruby...everything is an object! Ruby was released in.
Web Application Programming Carol Wolf Computer Science.
L. Grewe LAMP, WAMP and... Motivaiton Basic Web Systems with Delivery of Static and Dynamic Web Pages html, css, media javascript (“dynamic” on client.
MVC & ActiveRecord by Christian Mohr & Mohamed Souiai.
Fundamentals of Database Chapter 7 Database Technologies.
Lecture 19 Web Application Frameworks Boriana Koleva Room: C54
1 Dr Alexiei Dingli Web Science Stream Introducing Rails.
Ruby on Rails a high-productivity web application framework Curt Hibbs Curt Hibbs
The Web Architecture and ASP.NET. Slide 2 Review of the Web (1) It began with HTTP and HTML, which delivers static Web pages to browsers which would render.
OpenACS: Porting Oracle Applications to PostgreSQL Ben Adida
What we’ve learnt Doc 5.69 Doc 5.70 Section 1-3. A simple database Related objects Tables hold the data Forms, reports, queries to access the data.
Rails & Ajax Module 5. Introduction to Rails Overview of Rails Rails is Ruby based “A development framework for Web-based applications” Rails uses the.
Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation
Ruby on Rails By S. Christopher Hellriegel. Overview 1. What is Ruby on Rails? 2. What is MVC? 3. Simple example 4. Wow, that was cool!
RUBY ON RAILS (RoR) Ishwor Khadka. Why Ruby on Rails?
CRM in Education: Raising Standards. Saving Time. Presented by: Daniel Petersen Director of Business Solutions Applied Tech.
Introduction to Ruby&Rails Yuri Veremeyenko Monica Verma.
ThinStructure: An Overview Support for ThinStructure demonstration. Jean Georges Perrin – Annandale, 21 st April 2004.
Introduction to information systems RUBY ON RAILS dr inż. Tomasz Pieciukiewicz.
Copyright 2007, Information Builders. Slide 1 iWay Web Services and WebFOCUS Consumption Michael Florkowski Information Builders.
Database Issues Peter Chochula 7 th DCS Workshop, June 16, 2003.
1 Rails for the Ruby-Impaired John Paul Ashenfelter CTO/Transitionpoint.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
JRuby on Rails Presenter Name
JRuby on Rails Brian Leonard ブライアン レオナルド
The Holmes Platform and Applications
Chapter 13 Web Application Infrastructure
Building Enterprise Applications Using Visual Studio®
INTRODUCTION TO DATABASES (MICROSOFT ACCESS)
آشنایی با نرم افزار Microsoft Access
CS320 Web and Internet Programming SQL and MySQL
A very brief introduction

Ruby, Rails, GUIs, and More
CO6025 Advanced Programming
Create and publish reports with Power BI for desktop
K-Plex, Inc. We Develop Technology for… Personalization Integration
Ruby on Rails by Manik Juneja
ADO.NEXT Advances in Data Access for 2008
Ruby on Rails by Manik Juneja
SPC2012 – IT-Pro 11/30/2018 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
ASP.NET Module Subtitle.
CS3220 Web and Internet Programming SQL and MySQL
CS3220 Web and Internet Programming SQL and MySQL
UFCEUS-20-2 Web Programming
Demo for Partners and Customers
Presentation transcript:

Ruby on What? A brief introduction to Rails Christopher Hoskin Faculty of History 12th Annual IT Support Staff Conference 21st June 2007, St. Catherine's College

Ruby on Rails ● Overview – What is Ruby? What is Rails? – Who's backing it? ● Demo 1 – Simple seminar application ● How does it work? ● Demo 2 – Customised seminar application

Ruby ● Created by Yukihiro “matz” Matsumoto ● Dual GPL / Ruby licence ● Dynamic, reflective, object-oriented scripting language

Rails ● Open-source (MIT) web framework ● By David Heinemeier Hansson (37signals) ● Rails Mantra – Opinionated Software – Convention over Configuration – DRY (Don't Repeat Yourself)

Who's using it? ● 37signals – (Basecamp, Highrise, Campfire, Backpack) ● Joyant – (Hosting, Collaboration, Slingshot) ● Relevance – (Training, Consultancy, Streamlined) ● Active Reload – (Lighthouse, Mephisto)

So no one we've heard of? ● The BBC – ● Amazon – ● The Leaky Cauldron –

Ruby 1.8 Single pass interpreter YARVM (Ruby 2.0) Ruby on Rails on...? Ruby Rails Parrot Cardinal JVM JSR 223 JRuby CLR DLR Iron Ruby All trademarks and copyrights are the property of their respective owners.

Vendor Tools Orcas RDT DLTK All trademarks and copyrights are the property of their respective owners.

MVC Controller ActionController View ActionView Prototype Scriptaculous Model ActiveRecord Migrations Database

Databases ● MySql (default) ● PostgreSQL ● SQLite ● Microsoft SQL Server – Native on Windows, via FreeTDS on *nix ● IBM DB2 ● Oracle ● Several others

Demo 1 - Aims ● Create a new rails project - seminars ● Set up models, controllers ● Set up database with migrations ● Install and use Active_Scaffold plugin

Seminar – Class Diagram

What did we do? ● Rails created initial application ● We defined tables with migrations ● We set up the model – joins specified with has_many & belongs_to – DRY: No need to specify the fields ● Active Scaffold provided controller & view

has_many... belongs_to ● Seminar has_many :sessions e.g. – sem.sessions.create(:date => ' ') – next = sem.sessions.find(:first, :conditions => [“date > ?”, today]) ● Session belongs_to :seminar e.g. – sem_title = sess.seminar.title – sess.seminar = sem;

has_many :sessions ● Configuration over convention – assumes foreign key in seminar_id in session table ● Can be customised – has_many :sessions, :order => :date, :dependent => :delete_all ● Or write your own – has_many :sessions, :finder_sql => 'select date from sessions where seminar_id=#{id}'

Demo 2 - Aims ● Session view with paper panel – Simple custom view – Simple demonstration of use of AJAX ● Order papers in session – Drag and drop papers in browser – Still very simple

Integration Database Database Business Logic Triggers Stored Procedures App1App2 App3 XML Native Protocol ODBC App4 SOAP App5 COBRA