Ruby On Rails Rebecca Crabb and Blaine Stancill. Ruby Open-Source Programming LanguageOpen-Source Programming Language Created by Yukihiro MatsumotoCreated.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails.
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.
Language of the Month If it’s December, it must be Ruby! Adam Coffman and Brent Beer.
.NET Database Technologies: Open-Source Frameworks.
Sakai on Rails Integrating Ruby and Sakai David Adams, Virginia Tech.
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.
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 The Gem of new programming languages. An interpreted scripting language.
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.
Groovy & Grails Jean Barmash CTO, EnergyScoreCards.com
Ruby on Rails: An Introduction JA-SIG Summer Conference 2007 Michael Irion The University of Tulsa.
Chapter 3.1 – RoR: An introduction Maciej Mensfeld Presented by: Maciej Mensfeld RoR: An introduction dev.mensfeld.pl github.com/mensfeld.
| Lugano, Ruby on Rails.
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 Mark Zhang. In this talk  Overview of Ruby on Rails  Core ideas  Show a tiny bit of example code  Touch on several general web development/
Ruby on Rails Web development that doesn’t hurt. Ruby on Rails Framework written in the Ruby programming language for database- backed web applications.
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: )
Ruby on Rails CSCI 6314 David Gaspar Jennifer Garcia Avila.
Rails and Grails. To get started Make sure you have java installed You can get the sdk and jre at:
UC Berkeley Hello Rails. Review: MVC Goal: separate organization of data (model) from UI & presentation (view) by introducing controller –mediates user.
Brakeman and Jenkins: The Duo Detects Defects in Ruby on Rails Code Justin Collins Tin Zaw AppSec USA September 23, 2011.
General Purpose Language Ruby Kit Chan COMP3351 Programming Languages November 9, 2007.
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.
Symfony2 Code. Project structure Welcome page php.ini.
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.
And other languages….  Also called introspection  Program can examine/modify its own state set variables call methods add new methods define new classes.
Chapter 8 Script-free pages. Problem with scripting in JSP When you use scripting (declaration, scriplet, expressions) in your JSP, you actually put Java.
Lecture 19 Web Application Frameworks Boriana Koleva Room: C54
Lecture 10 Rails Projects Topics SaaSSaaS Readings: SaaS book Ch 2, 4 February 24, 2014 CSCE 740 Software Engineering.
1 Dr Alexiei Dingli Web Science Stream Introducing Rails.
Ruby! Ronald L. Ramos. What is Ruby? Ruby is a scripting language designed by Yukihiro Matsumoto, also known as Matz. It runs on a variety of platforms,
Ruby. Who am I? 1- Bunlong Van 2- Sreyleap Lay, 3- Chhon Meily Blog:
Pemrograman Web MVC Programming and Design Pattern in PHP 5.
Java Quiz Bowl A fun review of the Java you should know from CMPT 201 If you don’t know the answers - this week is for you to study up!
The Active Record Paradigm Databases in Database-Centric Web Site Development.
Effective Test Driven Database Development Gojko Adzic
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?
Ruby on Rails Evaluation – Cognitive Dimensions Joshua Sunshine
BEGINNING PROGRAMMING.  Literally – giving instructions to a computer so that it does what you want  Practically – using a programming language (such.
Fall CIS 764 Database Systems Engineering L18.2 : Object Relational Mapping … ….Object persistence.
C++ The reason why it is still in use. Table of Contents Disadvantages Disadvantages Advantages Advantages Compare with object-oriented programming language.
CSE 1341 Honors Note Set 2 1. Overview  Java vs. C++  Functions in C++  First Programming Packet  Development Environment 2.
1 Getting Started with Ruby. 2 What’s Ruby? Ruby is an OO, dynamic, agile language –Everything’s an object For example, try puts -1.abs –Derives strengths.
Ruby on Rails. Web Framework for Ruby Designed to make it easier to develop, deploy, and maintain web applications Design with Model-View-Controller –almost.
1 Rails for the Ruby-Impaired John Paul Ashenfelter CTO/Transitionpoint.
BIT 286: Web Applications ASP.Net MVC. Objectives Applied MVC overview Controllers Intro to Routing Views ‘Convention over configuration’ Layout files.
Ruby Tien Ho and Brandon Hostetter. Overview ▸ Object-oriented, functional, imperative, and reflective ▸ Interpreted language ▸ Influenced by Perl, Smalltalk,
Presented by Alexey Vedishchev Developing Web-applications with Grails framework American University of Nigeria, 2016 Intro To MVC Architecture.
Presented By P.SRIVIDYA 085D1A0552 Programming Language.
School of Informatics University of Edinburgh An Introduction to Ruby on Rails Ken Dawson.
1 Charles Oliver Nutter Thomas Enebo Tor Norbye Martin Krauskopf JRuby: Understanding the Fuss Except where otherwise noted, the content of this presentation.
JRuby on Rails Presenter Name
JRuby on Rails Brian Leonard ブライアン レオナルド
Scope History of Ruby. Where can you use Ruby? General Features.

LAMP, WAMP and.. L. Grewe.
Agile Web Development with Ruby and Rails
Ruby on Rails by Manik Juneja
Ruby on Rails by Manik Juneja
Entity Framework Core (EF Core)
Chapter 15 Introduction to Rails.
ITE “A” GROUP 2 ENCAPSULATION.
Presentation transcript:

Ruby On Rails Rebecca Crabb and Blaine Stancill

Ruby Open-Source Programming LanguageOpen-Source Programming Language Created by Yukihiro MatsumotoCreated by Yukihiro Matsumoto Blended parts of other languagesBlended parts of other languages “I wanted a scripting language that was more powerful than Perl and more object-oriented than Python”“I wanted a scripting language that was more powerful than Perl and more object-oriented than Python” Public release in 1995Public release in 1995 Achieved mass acceptance in 2006 with Ruby On RailsAchieved mass acceptance in 2006 with Ruby On Rails

Why Ruby? Ruby: puts “Hello World!”Ruby: puts “Hello World!” Java: threeVeryLongLines.weHopeWork…Java: threeVeryLongLines.weHopeWork… Perl: #$<!&;Perl: #$<!&; Lisp: ((a(((b)))c)))Lisp: ((a(((b)))c))) No, But Really…

Ruby vs Java Ruby The empty program:The empty program: Basic Getters and SettersBasic Getters and Setters class Circle attr_accessor :radius end Java The empty program:The empty program: Class Test { public static void main(String[] args){} } Basic Getters and SettersBasic Getters and Setters class Circle{ private float radius; public void setRadius(float radius){ this.radius = radius; } public float getRadius(){ return radius; }}

Ruby VS JAVA Ruby List:List: stuff = [ ] stuff << “Java”, “Ruby” Java List:List: List languages = new LinkedList (); languages.add(“Java”); languages.add(“Ruby”);

Objects Everything is an objectEverything is an object Does not have primitives like JavaDoes not have primitives like Java

TypeCasting “If it walks like a duck and talks like a duck, it’s a duck!” The “Duck Typing” philosophyThe “Duck Typing” philosophy Define an object by what it can do, not its typeDefine an object by what it can do, not its type Current set of methods and propertiesCurrent set of methods and properties Variable namingVariable naming var could be a local variablevar could be a local is an instance is an instance variable $var is a global variable$var is a global variable

Ruby on Rails Open source web application framework for RubyOpen source web application framework for Ruby Designed for Agile developmentDesigned for Agile development Released in July 2004Released in July 2004 In August 2006 Apple announced that it would ship RoR with Mac OS X LeopardIn August 2006 Apple announced that it would ship RoR with Mac OS X Leopard Rails provided a purpose for RubyRails provided a purpose for Ruby Rails using Model-View-Controller architectureRails using Model-View-Controller architecture

Philosophy and Design Convention over ConfigurationConvention over Configuration Naming conventionsNaming conventions Class Sale in the model, the corresponding table in database is called sales by defaultClass Sale in the model, the corresponding table in database is called sales by default Less CodeLess Code Don’t Repeat YourselfDon’t Repeat Yourself ScaffoldingScaffolding Automatically create full CRUD support for database tableAutomatically create full CRUD support for database table GeneratorsGenerators Built in scripts to automatically generate parts of frameworkBuilt in scripts to automatically generate parts of framework

MVC Pattern

Active Record It’s the M in MVCIt’s the M in MVC Handles the automatic mapping of your database tables to your runtime model objectsHandles the automatic mapping of your database tables to your runtime model objects Tables to classesTables to classes Rows to objectsRows to objects Columns to object attributesColumns to object attributes Don’t need to see or use SQLDon’t need to see or use SQL But still can if necessaryBut still can if necessary Relational databaseRelational database

Database Access team.rb is our model:team.rb is our model: class Team < ActiveRecord::Base has_many:players has_one:coach belongs_to:conference end Retrieve all the players:Retrieve all the

The Rails way Quick and easy developmentQuick and easy development Built for scalabilityBuilt for scalability Every app is structured the sameEvery app is structured the same Convention over ConfigurationConvention over Configuration Don’t Repeat YourselfDon’t Repeat Yourself

ViDeoS

More Info ON RoR t_is_rails.html?page=3http://onlamp.com/pub/a/onlamp/2005/10/13/wha t_is_rails.html?page=3http://onlamp.com/pub/a/onlamp/2005/10/13/wha t_is_rails.html?page=3http://onlamp.com/pub/a/onlamp/2005/10/13/wha t_is_rails.html?page=3

Questions?

References rails.html?page=3http://onlamp.com/pub/a/onlamp/2005/10/13/what_is_ rails.html?page=3http://onlamp.com/pub/a/onlamp/2005/10/13/what_is_ rails.html?page=3http://onlamp.com/pub/a/onlamp/2005/10/13/what_is_ rails.html?page= programming-language-suckshttp://slideshare.net/vishnu/the-top-10-reasons-the-ruby- programming-language-suckshttp://slideshare.net/vishnu/the-top-10-reasons-the-ruby- programming-language-suckshttp://slideshare.net/vishnu/the-top-10-reasons-the-ruby- programming-language-sucks