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.

Slides:



Advertisements
Similar presentations
EPrints Web Configuratio n Management. SQL database Web server Scripts to configure repository activities Configuration files EPrints - the Administrator's.
Advertisements

Introduction to JavaScript
Chapter 15 © 2010 by Addison Wesley Longman, Inc Origins and Uses of Ruby - Designed by Yukihiro Matsumoto; released in Use spread rapidly.
Web Applications Development Using Coldbox Platform Eddie Johnston.
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.
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
24-Jun-15 Rails. What is Rails? Rails is a framework for building web applications This involves: Getting information from the user (client), using HTML.
Tomcat Configuration A Very, Very, Very Brief Overview.
Ruby on Rails Creating a Rails Application Carol E Wolf CS396X.
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.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 21: Publishing Your Pages on the Web.
Web Application Architecture: multi-tier (2-tier, 3-tier) & mvc
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,
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Rails and Grails. To get started Make sure you have java installed You can get the sdk and jre at:
Deploying Ruby on Rails How to make your application actually serve Dan Buettner 18 Oct 2007.
SCRAM Software Configuration, Release And Management Background SCRAM has been developed to enable large, geographically dispersed and autonomous groups.
DONE-10: Adminserver Survival Tips Brian Bowman Product Manager, Data Management Group.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
SSC2: Web Services. Web Services Web Services offer interoperability using the web Web Services provide information on the operations they can perform.
© 2012 LogiGear Corporation. All Rights Reserved Robot framework.
Mass user creation On our servers is used the convention, that each of user has only one database, which has the same name, as the user itself. This method.
L. Grewe LAMP, WAMP and... Motivaiton Basic Web Systems with Delivery of Static and Dynamic Web Pages html, css, media javascript (“dynamic” on client.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Class03 Introduction to Web Development with PHP MIS 3501, Fall 2015 Brad Greenwood, PhD MBA Department of MIS Fox School of Business Temple University.
|Tecnologie Web L-A Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat
1 Dr Alexiei Dingli Web Science Stream Introducing Rails.
ATG Environment Setup In this session you will learn – Setting Up ATG environment – Creating new ATG application – Configuring Data Source – Configuring.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
CWCW System Demo Campus Web Council of Wisconsin.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Installation and Testing.
1 3. Computing System Fundamentals 3.1 Language Translators.
The Active Record Paradigm Databases in Database-Centric Web Site Development.
Ruby on Rails (Slides modified by ements-2ed.shtml)
Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis
Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.
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!
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
© 2008 by Shawn Spiars; made available under the EPL v1.0 | March 17, 2008 Case Study – Phurnace Software and RCP Shawn Spiars Lead UI Developer Phurnace.
WHAT IS SERVER SIDE SCRIPTING? Server-side scripting is a web server technology in which a user's request is verified by running a script directly on the.
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
Unit 1 – Web Concepts Instructor: Brent Presley.
SPI NIGHTLIES Alex Hodgkins. SPI nightlies  Build and test various software projects each night  Provide a nightlies summary page that displays all.
Class03 Introduction to Web Development (Hierarchy and the IDE) MIS 3501, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University.
Presented By:. What is JavaHelp: Most software developers do not look forward to spending time documenting and explaining their product. JavaSoft has.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
Plug-In Architecture Pattern. Problem The functionality of a system needs to be extended after the software is shipped The set of possible post-shipment.
1 Rails for the Ruby-Impaired John Paul Ashenfelter CTO/Transitionpoint.
Basics Components of Web Design & Development Basics, Components, Design and Development.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
Chapter 13 Web Application Infrastructure
Fundamental of Databases
Class03 Introduction to Web Development (Hierarchy and the IDE)
Product Training Program
Hyrax Configuration.
Introduction to ASP By “FlyingBono” 2009_01 By FlyingBono 2009_01
PHP / MySQL Introduction
LAMP, WAMP and.. L. Grewe.
Ruby on Rails by Manik Juneja
Rails 11-Nov-18.
Ruby on Rails by Manik Juneja
Introduction to JBoss application server
8 6 MySQL Special Topics A Guide to MySQL.
UFCEUS-20-2 Web Programming
Presentation transcript:

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 forms Doing validation Maintaining session information Managing a database Displaying results to the user Rails differs from similar frameworks in C++ or Java Rails applications can be built much more quickly Rails requires knowledge of fewer technologies

Required software You need: The Ruby language A database, such as MySQL A Ruby-capable web server, such as lightppd, WEBRick, or Mongrel On Windows, InstantRails provides all of these On Macintosh, Locomotive provides these On Linux you probably have to assemble the pieces yourself It’s also helpful to have: A good text editor, such as TextMate or TextPad A Ruby IDE, such as Eclipse with the RDT plugin, or RadRails A GUI interface for looking at your database

Rails philosophy Convention over configuration Other frameworks use several XML configuration files to specify where everything is, and how the parts are related Rails assumes a standard configuration. Don't Repeat Yourself (DRY) Every piece of information (program or data) should be represented once and only once Rails provides a structure that encourages DRY Agile development In Rails we start with a working program and “grow” it by making small changes In Rails it is easy to re-test after every small change Rails provides strong support for unit testing

Three environments By default, Rails projects use three environments The development environment Classes are reloaded after every change, so every change you make happens “immediately”--you don’t have to restart the server This is where you do most of your work The test environment Classes are also reloaded after every change For each test, Rails creates a fresh copy of the data in the test database The production environment Classes are only loaded once Changes typically require stopping and restarting the server The environment is tuned for speed

Starting an application To create a new application, such as the Cookbook application in the Curt Hibbs example, enter the command: rails cookbook This creates a directory (folder) named cookbook and, beneath it, a large directory structure and a number of files

The directories, I Rails creates the following subdirectories of the cookbook directory: app -- more about this directory later components -- reusable components config -- configuration information, including database connection parameters db -- database schema information doc -- autogenerated documentation lib -- code produced by your company and shared by many applications vendor -- purchased code shared by many applications

The directories, II More subdirectories log -- log files produced by the application public -- the web-accessible directory; your program appears to be running from here Rakefile -- scripts for creating documentation and tests script -- utility scripts tests -- unit tests, functional tests, mocks, and fixtures Of these, the app subdirectory is the most important, but you will probably also use the config, db, and test directories