CS 683 Emerging Technologies Fall Semester, 2005 Doc 21 Rails Intro Nov 10, 2005 Copyright ©, All rights reserved. 2005 SDSU & Roger Whitney, 5500 Campanile.

Slides:



Advertisements
Similar presentations
Applied Ruby on Rails & AJAX An insight into the technology and principles behind a social networking community.
Advertisements

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails.
CS 142 Lecture Notes: Rails Controllers and ViewsSlide 1 Simple Rails Template
Getting Started with Capistrano and Ruby on Rails Slides taken from
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.
Creating rails app. p:\InstantRails\rails_apps>rails -d mysql cars create create app/controllers create app/helpers create app/models create app/views/layouts.
CS 683 Emerging Technologies Fall Semester, 2005 Doc 25 Rails Transactions, Sessions, Filters Nov 29, 2005 Copyright ©, All rights reserved SDSU.
Creating Web Services with Ruby on Rails Robert Thew Internet and Web Systems II.
CS 683 Emerging Technologies Fall Semester, 2005 Doc 23 Rails Model Example Nov 17, 2005 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500.
CS 580 Client-Server Programming Spring Semester, 2006 Doc 24 Some Ruby GUI 2 Apr 27, 2006 Copyright ©, All rights reserved SDSU & Roger Whitney,
CS 683 Emerging Technologies Fall Semester, 2005 Doc 24 Rails Database Nov 22, 2005 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500 Campanile.
CS 580 Client-Server Programming Spring Semester, 2006 Doc 20 Sending Apr 13, 2006 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500.
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.
CS 635 Advanced Object-Oriented Design & Programming Spring Semester, 2006 Doc 2 Terms & Testing Jan 24, 2006 Copyright ©, All rights reserved SDSU.
A complete ror application. Some easy tutorials This uses oracle but it is easy to replace that with mysql:
Creating a wiki blog. Run apps that come with instant rails distribution select I /rails applications/open ruby console window Cd to cookbook or typo.
CS 683 Emerging Technologies Fall Semester, 2005 Doc 22 Rails Basic Action Pack & Active Record Nov 15, 2005 Copyright ©, All rights reserved SDSU.
Introduction to eValid Presentation Outline What is eValid? About eValid, Inc. eValid Features System Architecture eValid Functional Design Script Log.
Ruby on Rails CSE 190M, Spring 2009 Week 5. Installing Rails First, install Ruby with RubyGems Then, install the Rails gem gem install rails -version=2.3.2.
Ruby on Rails Creating a Rails Application Carol E Wolf CS396X.
Ruby on Rails ::The New Gem of Web Development Ross Pallan IT Project Manager Argonne National Laboratory
Irma & Robert. Irma & Robert  Ruby on Rails is an open source web application framework for the Ruby programming language. It is often referred to as.
INTRO TO MAKING A WEBSITE Mark Zhang.  HTML  CSS  Javascript  PHP  MySQL  …That’s a lot of stuff!
Intro to Rails INFO 2310: Topics in Web Design and Programming.
Ruby on Rails (Slides modified by ements-2ed.shtml)
LoadTest. What is a LoadTest? By running multiple copies of the eValid browser simultaneously, eValid can impose heavy work loads on a WebServer. You.
Ruby on Rails: An Introduction JA-SIG Summer Conference 2007 Michael Irion The University of Tulsa.
Ruby on Rails. What is Ruby on Rails? Ruby on Rails is an open source full-stack web framework. It is an alternative to PHP/MySQL. It can render templates,
Ruby on Rails CSCI 6314 David Gaspar Jennifer Garcia Avila.
Introduction to Big Brother Greg Porter Data Processing Manager USPFO For California.
Rails and Grails. To get started Make sure you have java installed You can get the sdk and jre at:
Library à la Carte: Customize|Collaborate|Connect Overview & Demo Kim Griggs & Jane Nichols Oregon State University.
1 Dr Alexiei Dingli Web Science Stream Models, Views and Controllers.
Brakeman and Jenkins: The Duo Detects Defects in Ruby on Rails Code Justin Collins Tin Zaw AppSec USA September 23, 2011.
Ruby on Rails Your first app. Rails files app/ Contains the controllers, models, views and assets for your application. You’ll focus on this folder for.
Database Design 1 CMS 476 Fall 1, 2007 Dr. Karl Horak, Instructor.
Lecture 11 Rails Topics SaaSSaaS Readings: SaaS book Ch February CSCE 740 Software Engineering.
Brava for Open Text ECM SharePoint Connector Copyright © Open Text Corporation All rights reserved. Slide 1.
Ruby on Rails CSE 190M, Spring 2009 Week 6. Overview How to use a database Demo creating a blog application on Rails Explain how the application works.
The Active Record Paradigm Databases in Database-Centric Web Site Development.
Ruby on Rails (Slides modified by ements-2ed.shtml)
Associations INFO 2310: Topics in Web Design and Programming.
CS 580 Client-Server Programming Spring Semester, 2006 Doc 16 Some Parsing Mar 30, 2006 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500.
CS 683 Emerging Technologies Fall Semester, 2005 Doc 19 Ruby Regexp, Expression, Exceptions, Modules Nov 8, 2005 Copyright ©, All rights reserved
CIT 383: Administrative ScriptingSlide #1 CIT 383: Administrative Scripting Introduction.
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 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?
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
Chapter 15 © 2013 by Pearson Overview of Rails - Rails is a development framework for Web-based applications - Based on MVC architecture for applications.
Ruby on Rails+MySQL. Sebesta corvette example In rails_apps create a directory (car_app), change to this dir and run rails (rails cars) Rails_apps Car_app.
Introduction to Ruby&Rails Yuri Veremeyenko Monica Verma.
CS 683 Emerging Technologies Fall Semester, 2005 Doc 26 Rails Miscellaneous Dec 1, 2005 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500.
1 Dr Alexiei Dingli Web Science Stream Installing ROR.
Display Page (HTML/CSS)
CS 160 and CMPE/SE 131 Software Engineering February 11 Class Meeting Department of Computer Science Department of Computer Engineering San José State.
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.
 Computer hardware refers to the physical parts of a computer and related devices. Internal hardware devices include motherboards, hard drives,
School of Informatics University of Edinburgh An Introduction to Ruby on Rails Ken Dawson.
JRuby on Rails Presenter Name
JRuby on Rails Brian Leonard ブライアン レオナルド
Active Server Pages Computer Science 40S.
Lab 1 introduction, debrief
Ajax on Rails 28-Nov-18.
CS 142 Lecture Notes: Cookies
Chapter 15 Introduction to Rails.
Sparklines.
Presentation transcript:

CS 683 Emerging Technologies Fall Semester, 2005 Doc 21 Rails Intro Nov 10, 2005 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500 Campanile Drive, San Diego, CA USA. OpenContent ( license defines the copyright on this document.

2 References Agile Web Development with Rails, Thomas & Hansson, Pragmatic Bookshelf, Main Ruby on Rails site Lots of howtos

3 Rails Architecture

4 Model-View-Controller Model Core functionality & data View Displays information to user Controller Handles user input Created by Trygve Reenskaug

5 Installing Rails Make sure Ruby & Gems is installed ruby -v gem --version If not installed use installer at gem install rails --include-dependencies For more information see:

6 Hello World Example Create a new application Al 40->rails demo Al 41->cd demo Al 42->ls README config/ log/ vendor/ Rakefile db/ public/ app/ doc/ script/ components/ lib/ test/ Run the Rails Webserver - WEBrick Al 43->ruby script/server Access the server at

7 Generating Controllers and Tests Al 15->ruby script/generate controller Say exists app/controllers/ exists app/helpers/ create app/views/say exists test/functional/ create app/controllers/say_controller.rb create test/functional/say_controller_test.rb create app/helpers/say_helper.rb

8 Complete Hello Example class SayController < ApplicationController def hello end hello Hello from Rails demo/app/controllers/say_controller.rb edit to be: demo/app/views/say/hello.rhtml new file Access page via

9 Dynamic Page class SayController < ApplicationController def = Time.now end hello It is now = Hello demo/app/controllers/say_controller.rbdemo/app/views/say/hello.rhtml

10 Links hello Say GoodBye "goodbye" %> class SayController < ApplicationController def = Time.now end def goodbye end Bye Goodbye Say <%= link_to( "Hello", :action => "hello") %> demo/app/controllers/say_controller.rb demo/app/views/say/goodbye.rhtmldemo/app/views/say/hello.rhtml