Ruby on Rails (Slides modified by ements-2ed.shtml)

Slides:



Advertisements
Similar presentations
Client-server practices DSC340 Mike Pangburn. Agenda Overview of client-server development Editing on client (e.g., Notepad) or directly on server (e.g.,
Advertisements

Ruby on Rails Model of MVC. Model-View-Controller Paradigm A way of organizing a software system Benefits: Isolation of business logic from the user interface.
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 CSE 190M, Spring 2009 Week 7. Customizing Our Views In our blog example, our entries were ordered from oldest to newest We can order them.
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
Creating Web Services with Ruby on Rails Robert Thew Internet and Web Systems II.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Methods for Rails. File Structures This is taken directly from app Holds all the code that's specific.
A complete web app using flex. You can use the flex builder to generate the php (server side) code for a flex-php application. As before, Php connects.
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.
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.
Becky Bertram SharePoint MVP
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.
Julien Thibault / Phil Brewster / Kristina Doing-Harris
Software Library Configuration 1 Travis Love Technical Service Engineer.
Ruby on Rails (Slides modified by ements-2ed.shtml)
Linux/Bash Commands Damian Gordon. ls List all the visible files in the current folder.
1 Deploying a Web Application. 2 Virtual Directories Web servers map URLs to directories in their file systems. Called virtual directories. Normally one.
Accessing the Internet with Anonymous FTP Transferring Files from Remote Computers.
October 10, 2014 Coding For UX : Part 1 localhost 45 Main St #220 BKLN / / hugeinc.com.
Chapter 3.1 – RoR: An introduction Maciej Mensfeld Presented by: Maciej Mensfeld RoR: An introduction dev.mensfeld.pl github.com/mensfeld.
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. 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,
Mobile Tech Architecture Overview Phil Sirigiano Technical Services 3/4/2015.
Installing and Configuring Tomcat A quick guide to getting things set up on Windows.
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.
Library à la Carte: Customize|Collaborate|Connect Overview & Demo Kim Griggs & Jane Nichols Oregon State University.
Basic Programming in Ruby Today’s Topics: Introduction last class irb history log Methods Classes (briefly) Using 3 rd Party Libraries rubygems ‘ require.
2nd Semester Meeting 2 Matt Bernstein, Paul Capelli, Jared Segal January 22, 2008.
Linking Images to Other Areas within a Blackboard Course Darek Sady.
Views Carol Wolf Computer Science. Extended Ruby  Views files are written in extended Ruby, erb.  They end in.html.erb.  Ruby code is intermixed with.
ATG Environment Setup In this session you will learn – Setting Up ATG environment – Creating new ATG application – Configuring Data Source – Configuring.
Universiti Utara Malaysia Chapter 3 Introduction to ASP.NET 3.5.
Tomcat Setup BCIS 3680 Enterprise Programming. Getting Web Apps to Work  Verify that Tomcat works.  Understand how context works.  Create folders/files.
LINUX TERMINAL TUTORIAL EDCI 339 – Online Presentation by Roop Rahal.
CakePHP is an open source web development framework. It follows Model-View- Controller and is developed using PHP. IT is the basic for user to create.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Installation and Testing.
Lecture 11 Rails Topics SaaSSaaS Readings: SaaS book Ch February CSCE 740 Software Engineering.
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.
CS 241 Section (04/19/12). MP8  Web Server  Due: Tuesday, May 1 st, 11:59pm  What will you be doing?  Creating a web-server in C that serves HTML.
Topic Java EE installation (Eclipse, glassfish, etc.) Eclipse configuration for EE Creating a Java Web Dynamic Project Creating your first servlet.
Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project.
1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development.
LinuxChix Apache. Serving Webpages The layer 7 protocol (HTTP) is what our browsers talk to get us the websites we can't seem to live without. HTTP is.
WAMP Windows Apache MySQL and PHP i.e. “WAMP”. Why WAMP? WampServer is a Windows web development environment. It allows you to create and test web pages.
Introduction Selenium IDE is a Firefox extension that allows you to record, edit, and debug tests for HTML Easy record and playback Intelligent field selection.
Philip Repsher October 29 th, 2008 Or Maybe November 3 rd, 2008.
Lecture 13b Rails – Controllers and Views Topics SaaSSaaS Readings: SaaS book Ch March 3, 2014 CSCE 740 Software Engineering.
Setup Environment: Instructions for CS1520 Server Setup Nils Murrugarra
Fall CIS 764 Database Systems Engineering L15: Deployment Deploy … to place or arrange for deliberate (intended) purpose.
1 Dr Alexiei Dingli Web Science Stream Installing ROR.
Tomcat Setup BCIS 3680 Enterprise Programming. One-Click Tomcat Setup 2  This semester we’ll try to set up Tomcat with a PowerShell script.  Preparation.
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.
Basics Components of Web Design & Development Basics, Components, Design and Development.
1 Web Programming with Servlets & JSPs WEB APPLICATIONS – AN OVERVIEW.
Installing git In Linux: sudo apt-get install git In Windows: download it from run the setuphttp://git-scm.com/download/win.
Glencoe Introduction to Web Design Chapter 4 XHTML Basics 1 Review Do you remember the vocabulary terms from this chapter? Use the following slides to.
1 Adding a Model. We have created an MVC web app project Added a controller class. Added a view class. Next we will add some classes for managing movies.
School of Informatics University of Edinburgh An Introduction to Ruby on Rails Ken Dawson.
Play Framework: Introduction
Ruby Tooling in NetBeans
Web UI Basics ITM 352.
Test Case Structure Test Case Module(depend on framework) MocoServer
How files are organized
System & Network Administration (MCSA & RHCSA)
Establish, configure and maintain a website/system
Presentation transcript:

Ruby on Rails (Slides modified by ements-2ed.shtml)

What is Ruby on Rails? Rails is… – Written in Ruby – A web development framework – For development of web applications written in Ruby Benefits of Rails – Built-in functionality – Encourages good software development practices – Open source and lots of community support

Disadvantages of Rails Steep learning curve – Common Terminal Commands cd – change directory ls – list file and folders in current folder Lots of "magic" – Not always clear how things are being done – Not always obvious how to change or debug Ruby Magic Deployment……

Creating a New Rails App We simply call the Rails gem and give it the path to our new application Create your Rails application! rails path/to/application Example rails my_app This will spit out a bunch of files that compose your new Ruby web application

Starting Your Application Open your application folder (C:\my_app) Start Webrick, the built-in webserver rails server

Viewing Your Application Working locally – Open up your favorite browser and view the app on localhost with port

Viewing Your Application A new application will show you this page

Navigating the Rails File System When we open our project (C:\my_app), we see a number of folders For now, we will only be interested in a few of them – The "app" folder, specifically "app\views" – The "config" folder

The "app" Folder The "app" folder deals with the actual code of our application. It will hold all of our... – Objects ("models"), –.erb files ("views"), and… – code to work between the two ("controllers")

The "config" Folder The "config" folder will be where we configure particular settings of our Rails application We will tell our application how to setup the URLs of our app in the "routes.rb" file Eventually, we will tell our app how to connect to a particular database in the "database.yml" file