Rails: MVC in action

Size: px
Start display at page:

Download "Rails: MVC in action"

Transcription

1 Ruby on Rails

2 Basic Facts 1. Rails is a web application framework built upon, and written in, the Ruby programming language. 2. Open source 3. Easy to learn; difficult to master. 4. Fun (and a time-saver)! 5. Utilizes a Model-View-Controller (MVC) architecture (more on that in a moment).

3 What is MVC MVC is the architecture pattern upon which Rails operates. a.k.a. observer design pattern It breaks down the web application into three distinct (but not necessarily discrete) entities: The models (objects) The views (visual interfaces) The controllers (communication between models and views)

4 Rails: MVC in action

5 MVC: Model Models are classes. They represent objects used by the Rails application. Model names are often linked directly to a table name in a database (line 1). Model is defined using ActiveRecord comment.erb

6 Rails: ActiveRecord Rails is a database-driven web application platform ActiveRecord bridges between SQL databases and classes Make database simple to use, as a ruby class. ActiveRecord translates the actions on an ActiveRecord class to actions on SQL database Provide cross-database support.

7 CRUB in SQL 4 basic operations on a table row: Create, Read, Update attributes, Destroy INSERT INTO students (last_name, wsu_sid, degree_expected) VALUES ( Fox, 99999, ), ( Bodik, 88888, ) SELECT * FROM students WHERE (degree_expected < ) UPDATE students SET degree_expected= WHERE last_name= Bodik ) DELETE FROM students WHERE wsu_sid=99999

8 SQL interpreted in ActiveRecord ActiveRecord, a major component of Rails... Uses SQL tables as underlying storage, and SQL commands as underlying manipulation, of collections of Ruby objects (Later) Provides an object-relationship graph abstraction using SQL Joins as the underlying machinery Oversimplification: 1 instance of Ruby class Foo == 1 row in a SQL table called Foos Let Rails do the work of creating our model and related stuff: script/generate scaffold student last_name:string first_name:string wsu_id:integer degree_expected:datetime

9 Scaffolding: jumpstart ActiveRecord identical app/models/student.rb create test/unit/student_test.rb create test/fixtures/students.yml create app/views/students/_form.rhtml create app/views/students/list.rhtml create app/views/students/show.rhtml create app/views/students/new.rhtml create app/views/students/edit.rhtml create app/controllers/students_controller.rb create test/functional/students_controller_test.rb create app/helpers/students_helper.rb create app/views/layouts/students.rhtml create public/stylesheets/scaffold.css For creating test cases CRUD on student views model & controller Capture common elements of student-related views

10 Database migrate: create table We re not done yet! Students table doesn t exist... Scaffolding generates a migration file 001_create_students.rb defining a class with first & last name, WSU ID, degree date To create the table, running: rake db:migrate Question: what database? config/database.yml

11 ActiveRecord SQL class CreateStudents<ActiveRecord::Migration def self.up create_table :students do tbl tbl.column :last_name, :string tbl.column :first_name, :string tbl.column :wsu_sid, :integer, :null=>false, :default=>9999 end end def self.down drop_table :students end end CREATE TABLE students ( id INT NOT NULL AUTO_INCREMENT, last_name VARCHAR(255), first_name VARCHAR(255), wsu_sid INT(11) DEFAULT 9999 );

12 ActiveRecord in nutshell A class library that provides an object-relational model over a plain old RDBMS Deal with objects & attributes rather than rows & columns SELECT result rows enumerable collection (later) object graph join query

13 MVC: Model Basic anatomy of a model:...validations for data used to populate the database (line 3)....associations with other models...user-defined instance methods (not shown). article.erb

14 MVC: View Views come in many flavors: *.html - Standard HTML *.erb - Embedded Ruby *.html.erb - HTML with Embedded Ruby _*.html.erb - A partial (note the leading underscore) *.json - JSON-encoded string representing one or more models Most views in a Rails application are called templates Templates should map directly to an associated controller action

15 MVC: View The actual user interface of the application. Used to display and interact with data from the database. Default file format: ERB (embedded Ruby) Automatically called after a controller action. A controller can explicitly call a different view using render, replacing the default page; or, redirect_to, redirecting the browser to a different URL.

16 MVC: View Index.html.erb

17 MVC: Controller Acts as an intermediary between the models and the views. Responds to user interactions from the user interface and performs operations on the models. Each action in a controller is [typically] linked to a default template in the Rails application. CRUD Create: New, Create; Read: Find, find_by_attributes Update: Save, update_attributes Delete: Destroy

18 MVC: Controller

19 Glue MVC together: routes Routes specify how a http request is routed. A route can be specified by: URL; HTML action: POST, GET, PATCH Routes are defined in config/routes.rb Routes are registered using helper functions; Routes.rb

20 Glue MVC together: routes Routes specify how a http request is routed. A route can be specified by: URL; HTML action: POST, GET, PATCH Routes are defined in config/routes.rb Routes are registered using helper functions; Routes.rb

21 Inspect routes Run command rake routes

22 Ruby on rails Features

23 View: Partials Templates to render parts of a view Helps promote reuse Filenames always start with an underscore Local variables can be passed to partials Simple to use: Step 1: create a _mypartial.html.erb containing reusable html/erb code; Step 2: in a html, call <%= render mypartial %>

24 View: Forms Used to submit data to controller to be saved Built based on models Use form helpers Form helpers function can access instance variables. Validate data before sending

25 View: Forms

26 Ruby on Rails Synergy with other tools

27 Haml HTML abstraction markup language Language for views Simplifies template creation Cleaner more readable code Example from haml.info

28 Devise Provided by gem Devise Handles login and sessions Include helpers like current_user Handle sessions transparently using cookies More information available at

29 Ruby on Rails resources Ruby on Rails guide: Hands-on example of building a blog. Rails for Zombie:

CSCI-2320 Web Programming: Ruby on Rails

CSCI-2320 Web Programming: Ruby on Rails CSCI-2320 Web Programming: Ruby on Rails Mohammad T. Irfan Plan u Model-View-Controller (MVC) framework of web programming u Ruby on Rails 1 Ruby on Rails u Developed by David Hansson released 2004 u MVC

More information

Rails: Views and Controllers

Rails: Views and Controllers Rails: Views and Controllers Computer Science and Engineering College of Engineering The Ohio State University Lecture 18 Recall: Rails Architecture Wiring Views and Controllers A controller is just an

More information

Ruby on Rails 3. Robert Crida Stuart Corbishley. Clue Technologies

Ruby on Rails 3. Robert Crida Stuart Corbishley. Clue Technologies Ruby on Rails 3 Robert Crida Stuart Corbishley Clue Technologies Topic Overview What is Rails New in Rails 3 New Project Generators MVC Active Record UJS RVM Bundler Migrations Factory Girl RSpec haml

More information

Problem: Write HTML would create web page depicted below. Your solution must include the following types of HTML elements (and no other

Problem: Write HTML would create web page depicted below. Your solution must include the following types of HTML elements (and no other Problem: Write HTML would create web page depicted below. Your solution must include the following types of HTML elements (and no other types):!doctype, a (with href attribute), body, h1, head, html, img

More information

Courslets, a golf improvement web service. Peter Battaglia

Courslets, a golf improvement web service. Peter Battaglia Courslets, a golf improvement web service Peter Battaglia Discussion Project Overview Design and Technologies Utilized Rails and REST URLs, URLs, URLs Rails and Web Services What s s exposed as a service?

More information

Rails Guide. MVC Architecture. Migrations. Hey, thanks a lot for picking up this guide!

Rails Guide. MVC Architecture. Migrations. Hey, thanks a lot for picking up this guide! Rails Guide Hey, thanks a lot for picking up this guide! I created this guide as a quick reference for when you are working on your projects, so you can quickly find what you need & keep going. Hope it

More information

CS169.1x Lecture 6: Basic Rails" Fall 2012"

CS169.1x Lecture 6: Basic Rails Fall 2012 CS169.1x Lecture 6: Basic Rails" Fall 2012" 1" The Database is Golden Contains valuable customer data don t want to test your app on that! Rails solution: development, production and test environments

More information

Ruby on Rails 3 March 14th, 2011 Ken Li Allison Pon Kyra Leimert Matt Delaney Edward Bassett

Ruby on Rails 3 March 14th, 2011 Ken Li Allison Pon Kyra Leimert Matt Delaney Edward Bassett CMPUT 410 Ruby on Rails 3 March 14th, 2011 Ken Li Allison Pon Kyra Leimert Matt Delaney Edward Bassett Introduction - What is Ruby on Rails? Ruby on Rails is an open source web application development

More information

Are you using Ruby on Rails?

Are you using Ruby on Rails? Are you using Ruby on Rails? Should you? Come have a seat, and we ll figure it out Learn how to create happy programmers, and 10 real world benefits to using Rails Talk begins at 5 PM Warning Warning I

More information

Here are some figures to consider while answering the following questions.

Here are some figures to consider while answering the following questions. Here are some figures to consider while answering the following questions. Figure 1. Example page from Music Catalog web app. Figure 2. config/routes.rb Figure 3. Output of rake routes command. Figure

More information

Authentication in Rails

Authentication in Rails Authentication in Rails Aaron Mulder CTO Chariot Solutions Philly on Rails, October 2007 1 Agenda The problem Plugins in Rails, and the (many) solutions acts_as_authenticated Generated Code Custom Code

More information

Rails: Associations and Validation

Rails: Associations and Validation Rails: Associations and Validation Computer Science and Engineering College of Engineering The Ohio State University Lecture 17 Schemas, Migrations, Models migrations models database.yml db:migrate db:create

More information

Client Side MVC with Backbone & Rails. Tom

Client Side MVC with Backbone & Rails. Tom Client Side MVC with Backbone & Rails Tom Zeng @tomzeng tom@intridea.com Client Side MV* with Backbone & Rails Benefits of Client Side MVC Backbone.js Introduction Client Side MV* Alternatives Backbone

More information

CS 155 Project 2. Overview & Part A

CS 155 Project 2. Overview & Part A CS 155 Project 2 Overview & Part A Project 2 Web application security Composed of two parts Part A: Attack Part B: Defense Due date: Part A: May 5th (Thu) Part B: May 12th (Thu) Project 2 Ruby-on-Rails

More information

Migrations (Chapter 23)

Migrations (Chapter 23) Migrations (Chapter 23) The notes in this document are based on the online guide at http://guides.rubyonrails.org/migrations.html and the Agile Web Development with Rails, 4 th edition, book. Migration

More information

Lecture 4. Ruby on Rails 1 / 49

Lecture 4. Ruby on Rails 1 / 49 Lecture 4 Ruby on Rails 1 / 49 Client-Server Model 2 / 49 What is it? A client (e.g. web browser, phone, computer, etc.) sends a request to a server Request is an HTTP request Stands for HyperText Transfer

More information

Enterprise Systems & Frameworks

Enterprise Systems & Frameworks Enterprise Systems & Frameworks CS25010 - Web Programming Connor Goddard 5 th November 2015 Aberystwyth University 1 INTRODUCTION In today s session, we will aim to cover the following: Multi-tier Architectural

More information

Web System Development by Ruby on Rails. Day 3(4/Oct/2012) First Project Internationalization

Web System Development by Ruby on Rails. Day 3(4/Oct/2012) First Project Internationalization Web System Development by Ruby on Rails Day 3(4/Oct/2012) First Project Internationalization Today s Goal (Continued) Run Rails 3 on CentOS, and generate the first project. Generate the bi-lingual screen

More information

Rails 4 Quickly. Bala Paranj

Rails 4 Quickly. Bala Paranj Rails 4 Quickly Bala Paranj 1 About Author Bala Paranj has a Master s degree in Electrical Engineering from The Wichita State University. He has over 15 years of experience in the software industry. He

More information

Ruby on Rails. SITC Workshop Series American University of Nigeria FALL 2017

Ruby on Rails. SITC Workshop Series American University of Nigeria FALL 2017 Ruby on Rails SITC Workshop Series American University of Nigeria FALL 2017 1 Evolution of Web Web 1.x Web 1.0: user interaction == server roundtrip Other than filling out form fields Every user interaction

More information

Strategies for Rapid Web Prototyping. Ruby on Rails. Clemens H. Cap

Strategies for Rapid Web Prototyping. Ruby on Rails. Clemens H. Cap Strategies for Rapid Web Prototyping Ruby on Rails Strategies for Rapid Web Prototyping DRY: Don't repeat yourself Convention over Configuration Separation of Concern Templating MVC: Model View Controler

More information

The connection has timed out

The connection has timed out 1 of 7 2/17/2018, 7:46 AM Mukesh Chapagain Blog PHP Magento jquery SQL Wordpress Joomla Programming & Tutorial HOME ABOUT CONTACT ADVERTISE ARCHIVES CATEGORIES MAGENTO Home» PHP PHP: CRUD (Add, Edit, Delete,

More information

Rails 5 Quickly. Bala Paranj

Rails 5 Quickly. Bala Paranj Rails 5 Quickly Bala Paranj 1 About the Author Bala Paranj has a masters degree in Electrical Engineering from The Wichita State University. He has been working in the software industry since 1996. He

More information

Associations: mechanics (ESaaS 5.3)"

Associations: mechanics (ESaaS 5.3) Associations: mechanics (ESaaS 5.3)" Armando Fox" 2013 Armando Fox & David Patterson, all rights reserved How does it work?" Models must have attribute for foreign key of owning object" e.g., movie_id

More information

Connecting Software Connect Bridge [Performance Benchmark for Data Manipulation on Dynamics CRM via CB-Linked-Server]

Connecting Software Connect Bridge [Performance Benchmark for Data Manipulation on Dynamics CRM via CB-Linked-Server] Connect Bridge [Performance Benchmark for Data Manipulation on Dynamics CRM via CB-Linked-Server] Document History Version Date Author Changes 1.0 21 Apr 2016 SKE Creation Summary [This document provides

More information

Get in Touch Module 1 - Core PHP XHTML

Get in Touch Module 1 - Core PHP XHTML PHP/MYSQL (Basic + Advanced) Web Technologies Module 1 - Core PHP XHTML What is HTML? Use of HTML. Difference between HTML, XHTML and DHTML. Basic HTML tags. Creating Forms with HTML. Understanding Web

More information

User Authentication and Session Control

User Authentication and Session Control User Authentication and Session Control CITS3403 Web & Internet Technologies Includes material from Agile Web Development with Rails, 3rd Ed, 2008 and 4 th Ed 2011, 2012 The Pragmatic Programmers. Slides

More information

Rails: Models. Computer Science and Engineering College of Engineering The Ohio State University. Lecture 25

Rails: Models. Computer Science and Engineering College of Engineering The Ohio State University. Lecture 25 Rails: Models Computer Science and Engineering College of Engineering The Ohio State University Lecture 25 Recall: Rails Architecture Recall: Rails Architecture Mapping Tables to Objects General strategy

More information

Lecture 4. Ruby on Rails 1 / 52

Lecture 4. Ruby on Rails 1 / 52 Lecture 4 Ruby on Rails 1 / 52 Homeworks 2 & 3 Grades were released for homework 2 Homework 3 was due last night Everyone got a style freebie since my default setup ignores spec files and I didn't change

More information

CS50 Quiz Review. November 13, 2017

CS50 Quiz Review. November 13, 2017 CS50 Quiz Review November 13, 2017 Info http://docs.cs50.net/2017/fall/quiz/about.html 48-hour window in which to take the quiz. You should require much less than that; expect an appropriately-scaled down

More information

DevShala Technologies A-51, Sector 64 Noida, Uttar Pradesh PIN Contact us

DevShala Technologies A-51, Sector 64 Noida, Uttar Pradesh PIN Contact us INTRODUCING PHP The origin of PHP PHP for Web Development & Web Applications PHP History Features of PHP How PHP works with the Web Server What is SERVER & how it works What is ZEND Engine Work of ZEND

More information

COPYRIGHTED MATERIAL. Building Resources. A Good Place to Start

COPYRIGHTED MATERIAL. Building Resources. A Good Place to Start Building Resources Ruby on Rails is opinionated software. This doesn t mean that it s going to make fun of your haircut, or tell you what kind of car to drive. It does mean that Rails has definite ideas

More information

Introduction and first application. Luigi De Russis. Rails 101

Introduction and first application. Luigi De Russis. Rails 101 Introduction and first application Luigi De Russis 2 About Rails Ruby on Rails 3 Framework for making dynamic web applications created in 2003 Open Source (MIT License) for the Ruby programming language

More information

PHP & PHP++ Curriculum

PHP & PHP++ Curriculum PHP & PHP++ Curriculum CORE PHP How PHP Works The php.ini File Basic PHP Syntax PHP Tags PHP Statements and Whitespace Comments PHP Functions Variables Variable Types Variable Names (Identifiers) Type

More information

Model-View-Controller (MVC)

Model-View-Controller (MVC) Model-View-Controller (MVC) with Ruby on Rails Software Languages Team University of Koblenz-Landau Ralf Lämmel and Andrei Varanovich MVC - a classic definition The Model is the application object The

More information

Object Relational Mapping. Kenneth M. Anderson University of Colorado, Boulder Lecture 29 CSCI 4448/ /06/11

Object Relational Mapping. Kenneth M. Anderson University of Colorado, Boulder Lecture 29 CSCI 4448/ /06/11 Object Relational Mapping Kenneth M. Anderson University of Colorado, Boulder Lecture 29 CSCI 4448/5448 12/06/11 1 Credit where Credit is Due The slides that cover Hibernate and JPA were developed by Aaron

More information

Lecture 8. Validations & Sessions 1 / 41

Lecture 8. Validations & Sessions 1 / 41 Lecture 8 Validations & Sessions 1 / 41 Advanced Active Record 2 / 41 More Complex Queries Arel provides us with a number of methods to query our database tables So far, we've only used find which limits

More information

Ur/Web, a Domain-Specific Functional Programming Language for Modern Web Applications. Adam Chlipala

Ur/Web, a Domain-Specific Functional Programming Language for Modern Web Applications. Adam Chlipala Ur/Web, a Domain-Specific Functional Programming Language for Modern Web Applications Adam Chlipala Web Applications: A Steaming Pile of Text HTML, CSS, JavaScript, SQL, URLs, JSON,... Strings, strings,

More information

Application Design and Development: October 30

Application Design and Development: October 30 M149: Database Systems Winter 2018 Lecturer: Panagiotis Liakos Application Design and Development: October 30 1 Applications Programs and User Interfaces very few people use a query language to interact

More information

Now go to bash and type the command ls to list files. The unix command unzip <filename> unzips a file.

Now go to bash and type the command ls to list files. The unix command unzip <filename> unzips a file. wrangling data unix terminal and filesystem Grab data-examples.zip from top of lecture 4 notes and upload to main directory on c9.io. (No need to unzip yet.) Now go to bash and type the command ls to list

More information

"Charting the Course... Intermediate PHP & MySQL Course Summary

Charting the Course... Intermediate PHP & MySQL Course Summary Course Summary Description In this PHP training course, students will learn to create database-driven websites using PHP and MySQL or the database of their choice. The class also covers SQL basics. Objectives

More information

Online Entry using Ruby-on-Rails A Sport Event Management System

Online Entry using Ruby-on-Rails A Sport Event Management System Online Entry using Ruby-on-Rails A Sport Event Management System 23 rd April 2008 By Supervisor: Ian Watson Final Year Project Report - 1 - Project Title: Online entry, using Ruby on Rails A sport event

More information

iflame INSTITUTE OF TECHNOLOGY

iflame INSTITUTE OF TECHNOLOGY Web Development Ruby On Rails Duration: 3.5 Month Course Overview Ruby On Rails 4.0 Training From Iflame Allows You To Build Full Featured, High Quality, Object Oriented Web Apps. Ruby On Rails Is A Full

More information

Application Development in Web Mapping 6.

Application Development in Web Mapping 6. Application Development in Web Mapping 6. László Kottyán Application Development in Web Mapping 6.: Web Application Framework László Kottyán Lector: Antal Guszlev This module was created within TÁMOP -

More information

Web System Development with Ruby on Rails

Web System Development with Ruby on Rails Web System Development with Ruby on Rails Day 11(6/Dec/2012) File uploading and Image Display Today's Theme p Upload image files to the database, and let Memopad store the image file. p Try some other

More information

Web Development & SEO (Summer Training Program) 4 Weeks/30 Days

Web Development & SEO (Summer Training Program) 4 Weeks/30 Days (Summer Training Program) 4 Weeks/30 Days PRESENTED BY RoboSpecies Technologies Pvt. Ltd. Office: D-66, First Floor, Sector- 07, Noida, UP Contact us: Email: stp@robospecies.com Website: www.robospecies.com

More information

Web Technologies VU ( ) Vedran Sabol. Nov 13, ISDS, TU Graz. Vedran Sabol (ISDS, TU Graz) Web Technologies Nov 13, / 60

Web Technologies VU ( ) Vedran Sabol. Nov 13, ISDS, TU Graz. Vedran Sabol (ISDS, TU Graz) Web Technologies Nov 13, / 60 Web Technologies VU (706.704) Vedran Sabol ISDS, TU Graz Nov 13, 2017 Vedran Sabol (ISDS, TU Graz) Web Technologies Nov 13, 2017 1 / 60 Outline 1 Separation of Concerns Design Principle 2 Model-View-Controller

More information

Jaywalking in Traffic Safe Migrations at Scale. Brad Urani Staff Engineer

Jaywalking in Traffic Safe Migrations at Scale. Brad Urani Staff Engineer Jaywalking in Traffic Safe Migrations at Scale Brad Urani Staff Engineer What is Scale? 20,000,000 rows fetched / sec 30,000 transactions / sec 6 TB + + People 14 Squads working on one of the biggest

More information

Programming in PHP Have you Cake? Presenter: Nguyen Thanh Hai Mar. 30 th, 2014

Programming in PHP Have you Cake? Presenter: Nguyen Thanh Hai Mar. 30 th, 2014 Programming in PHP Have you Cake? Presenter: Nguyen Thanh Hai Mar. 30 th, 2014 Agenda Introduction Components needed Model-View-Controller Cake convention Relationship between Models Validation of data

More information

Building a Rails Application

Building a Rails Application Building a Rails Application Let s get started! Use MySQL to create a depot_development database Create a new Ruby on Rails project called depot Make sure root password is included in Configuration/database.yml

More information

Databases (MariaDB/MySQL) CS401, Fall 2015

Databases (MariaDB/MySQL) CS401, Fall 2015 Databases (MariaDB/MySQL) CS401, Fall 2015 Database Basics Relational Database Method of structuring data as tables associated to each other by shared attributes. Tables (kind of like a Java class) have

More information

Ruby on Rails Installation

Ruby on Rails Installation Ruby on Rails Installation http://www.tutorialspoint.com/ruby-on-rails/rails-installation.htm This tutorial will guide you to set up a private Ruby on Rails environment in the daw server. Step 0: Login

More information

AngularJS. CRUD Application example with AngularJS and Rails 4. Slides By: Jonathan McCarthy

AngularJS. CRUD Application example with AngularJS and Rails 4. Slides By: Jonathan McCarthy AngularJS CRUD Application example with AngularJS and Rails 4 1 Slides By: Jonathan McCarthy Create a new Rails App For this example we will create an application to store student details. Create a new

More information

AngularJS. CRUD Application example with AngularJS and Rails 4. Slides By: Jonathan McCarthy

AngularJS. CRUD Application example with AngularJS and Rails 4. Slides By: Jonathan McCarthy AngularJS CRUD Application example with AngularJS and Rails 4 1 Slides By: Jonathan McCarthy Create a new Rails App For this example we will create an application to store student details. Create a new

More information

Unit 27 Web Server Scripting Extended Diploma in ICT

Unit 27 Web Server Scripting Extended Diploma in ICT Unit 27 Web Server Scripting Extended Diploma in ICT Dynamic Web pages Having created a few web pages with dynamic content (Browser information) we now need to create dynamic pages with information from

More information

ABOUT WEB TECHNOLOGY COURSE SCOPE:

ABOUT WEB TECHNOLOGY COURSE SCOPE: ABOUT WEB TECHNOLOGY COURSE SCOPE: The booming IT business across the globe, the web has become one in every of the foremost necessary suggests that of communication nowadays and websites are the lifelines

More information

Ruby on Rails Secure Coding Recommendations

Ruby on Rails Secure Coding Recommendations Introduction Altius IT s list of Ruby on Rails Secure Coding Recommendations is based upon security best practices. This list may not be complete and Altius IT recommends this list be augmented with additional

More information

Instructions for the Day of Ruby Ruby on Rails Tutorial

Instructions for the Day of Ruby Ruby on Rails Tutorial Instructions for the Day of Ruby Ruby on Rails Tutorial 1. Make sure you have the vendor files from http://www.cornetdesign.com/files/dor.zip. 2. Open a terminal window and change to a project directory.

More information

SelectSurveyASP Advanced User Manual

SelectSurveyASP Advanced User Manual SelectSurveyASP Advanced User Manual Creating Surveys 2 Designing Surveys 2 Templates 3 Libraries 4 Item Types 4 Scored Surveys 5 Page Conditions 5 Piping Answers 6 Previewing Surveys 7 Managing Surveys

More information

Introduction to Ruby on Rails

Introduction to Ruby on Rails Introduction to Ruby on Rails Software Engineering II WS 2016/17 Arian Treffer arian.treffer@hpi.de Prof. Plattner, Dr. Uflacker Enterprise Platform and Integration Concepts group Introduction to Ruby

More information

Events & Callbacks (ESaaS 6.5)! 2013 Armando Fox & David Patterson, all rights reserved

Events & Callbacks (ESaaS 6.5)! 2013 Armando Fox & David Patterson, all rights reserved Events & Callbacks (ESaaS 6.5)! 2013 Armando Fox & David Patterson, all rights reserved Events" What: occurrences that affect the user interface" User interacts with a page element" Previously-set timer

More information

MVC: the Model-View-Controller architectural pattern

MVC: the Model-View-Controller architectural pattern MVC: the Model-View-Controller architectural pattern Laura Farinetti Dipartimento di Automatica e Informatica Politecnico di Torino laura.farinetti@polito.it 1 Model-View-Controller MVC is an architectural

More information

Prework & Module A. Programming Fundamentals Ruby Basics and Object Oriented - Programming Syllabus

Prework & Module A. Programming Fundamentals Ruby Basics and Object Oriented - Programming Syllabus CPSC S1: Introduction to Full-Stack Web Development Prework & Module A Programming Fundamentals Ruby Basics and Object Oriented - Programming Syllabus Unit Learning Objectives Reference Topics Competency

More information

JavaServer Faces Technology, AJAX, and Portlets: It s Easy if You Know How!

JavaServer Faces Technology, AJAX, and Portlets: It s Easy if You Know How! TS-6824 JavaServer Faces Technology, AJAX, and Portlets: It s Easy if You Know How! Brendan Murray Software Architect IBM http://www.ibm.com 2007 JavaOne SM Conference Session TS-6824 Goal Why am I here?

More information

Front End Programming

Front End Programming Front End Programming Mendel Rosenblum Brief history of Web Applications Initially: static HTML files only. Common Gateway Interface (CGI) Certain URLs map to executable programs that generate web page

More information

PHP INTERVIEW QUESTION-ANSWERS

PHP INTERVIEW QUESTION-ANSWERS 1. What is PHP? PHP (recursive acronym for PHP: Hypertext Preprocessor) is the most widely used open source scripting language, majorly used for web-development and application development and can be embedded

More information

Introduction to Ruby on Rails

Introduction to Ruby on Rails Introduction to Ruby on Rails Keven Richly keven.richly@hpi.de Software Engineering II WS 2017/18 Prof. Plattner, Dr. Uflacker Enterprise Platform and Integration Concepts group Introduction to Ruby on

More information

Web Application Expectations

Web Application Expectations Effective Ruby on Rails Development Using CodeGear s Ruby IDE Shelby Sanders Principal Engineer CodeGear Copyright 2007 CodeGear. All Rights Reserved. 2007/6/14 Web Application Expectations Dynamic Static

More information

Code Generation. The Safety Scissors Of Metaprogramming

Code Generation. The Safety Scissors Of Metaprogramming Code Generation The Safety Scissors Of Metaprogramming Ruby2Ruby (lambda do puts hello world end).to_ruby class Widget < ActiveRecord::Base end Ruby2Ruby.translate(Widget) class Widget < ActiveRecord::Base

More information

INTRO TO ASP.NET MVC JAY HARRIS.NET DEVELOPER

INTRO TO ASP.NET MVC JAY HARRIS.NET DEVELOPER INTRO TO JAY HARRIS.NET DEVELOPER WHAT IS MVC? It is a powerful and elegant means of separating concerns There is no universally unique MVC pattern. MVC is a concept rather than a solid programming framework.

More information

About the Tutorial. Audience. Prerequisites. Disclaimer & Copyright. TurboGears

About the Tutorial. Audience. Prerequisites. Disclaimer & Copyright. TurboGears About the Tutorial TurboGears is a Python web application framework, which consists of many modules. It is designed around the MVC architecture that are similar to Ruby on Rails or Struts. TurboGears are

More information

Day 3: 26/April/2012 Scaffolding Generation of Skeletons; Test run Memopad

Day 3: 26/April/2012 Scaffolding Generation of Skeletons; Test run Memopad Day 3: 26/April/2012 Scaffolding Generation of Skeletons; Test run Memopad p Generate WEB screens of the MemoPad Database Application n Setting up for Database Connection n Automatic generation of DB Files

More information

Helpline No WhatsApp No.:

Helpline No WhatsApp No.: TRAINING BASKET QUALIFY FOR TOMORROW Helpline No. 9015887887 WhatsApp No.: 9899080002 Regd. Off. Plot No. A-40, Unit 301/302, Tower A, 3rd Floor I-Thum Tower Near Corenthum Tower, Sector-62, Noida - 201309

More information

WWW, REST, and Web Services

WWW, REST, and Web Services WWW, REST, and Web Services Instructor: Yongjie Zheng Aprile 18, 2017 CS 5553: Software Architecture and Design World Wide Web (WWW) What is the Web? What challenges does the Web have to address? 2 What

More information

Introduction to Ruby on Rails

Introduction to Ruby on Rails Introduction to Ruby on Rails Ralf Teusner ralf.teusner@hpi.de Software Engineering II WS 2018/19 Prof. Plattner, Dr. Uflacker Enterprise Platform and Integration Concepts group Introduction to Ruby on

More information

Kendo UI. Builder by Progress : Using Kendo UI Designer

Kendo UI. Builder by Progress : Using Kendo UI Designer Kendo UI Builder by Progress : Using Kendo UI Designer Copyright 2017 Telerik AD. All rights reserved. December 2017 Last updated with new content: Version 2.1 Updated: 2017/12/22 3 Copyright 4 Contents

More information

COM401 Software Engineering Laboratory

COM401 Software Engineering Laboratory Computer Engineering Department COM401 Software Engineering Laboratory November 04, 2014 LAB-3: Rails Introduction Time: 2 lab hours Objectives: Practice with Ruby Symbols Routes MVC pattern CRUD operations

More information

Application Development in Web Mapping 6.

Application Development in Web Mapping 6. University of West Hungary, Faculty of Geoinformatics László Kottyán Application Development in Web Mapping 6. module ADW6 Web Application Framework SZÉKESFEHÉRVÁR 2010 The right to this intellectual property

More information

Fundamentals of Web Programming

Fundamentals of Web Programming Fundamentals of Web Programming Lecture 8: databases Devin Balkcom devin@cs.dartmouth.edu office: Sudikoff 206 http://www.cs.dartmouth.edu/~fwp http://localhost:8080/tuck-fwp/slides08/slides08db.html?m=all&s=0&f=0

More information

Day 8: 7/June/2012. Log-in Authentication

Day 8: 7/June/2012. Log-in Authentication Day 8: 7/June/2012 Log-in Authentication p Learn authentication so that only specific users can use the Web information of the system. p We use Devise to p Add one line to the file project/gemfile gem

More information

Relational databases and SQL

Relational databases and SQL Relational databases and SQL Relational Database Management Systems Most serious data storage is in RDBMS Oracle, MySQL, SQL Server, PostgreSQL Why so popular? Based on strong theory, well-understood performance

More information

Simple AngularJS thanks to Best Practices

Simple AngularJS thanks to Best Practices Simple AngularJS thanks to Best Practices Learn AngularJS the easy way Level 100-300 What s this session about? 1. AngularJS can be easy when you understand basic concepts and best practices 2. But it

More information

PHP WITH ANGULAR CURRICULUM. What you will Be Able to Achieve During This Course

PHP WITH ANGULAR CURRICULUM. What you will Be Able to Achieve During This Course PHP WITH ANGULAR CURRICULUM What you will Be Able to Achieve During This Course This course will enable you to build real-world, dynamic web sites. If you've built websites using plain HTML, you realize

More information

Ruby on Rails Welcome. Using the exercise files

Ruby on Rails Welcome. Using the exercise files Ruby on Rails Welcome Welcome to Ruby on Rails Essential Training. In this course, we're going to learn the popular open source web development framework. We will walk through each part of the framework,

More information

Validations vs. Filters

Validations vs. Filters Validations vs. Filters Advice (DRYness) Validation Filter Check invariants on model Check conditions for allowing controller action to run Pointcut AR model lifecycle hooks Before and/or after any public

More information

20486-Developing ASP.NET MVC 4 Web Applications

20486-Developing ASP.NET MVC 4 Web Applications Course Outline 20486-Developing ASP.NET MVC 4 Web Applications Duration: 5 days (30 hours) Target Audience: This course is intended for professional web developers who use Microsoft Visual Studio in an

More information

Contents in Detail. Foreword by Xavier Noria

Contents in Detail. Foreword by Xavier Noria Contents in Detail Foreword by Xavier Noria Acknowledgments xv xvii Introduction xix Who This Book Is For................................................ xx Overview...xx Installation.... xxi Ruby, Rails,

More information

CMSC 330: Organization of Programming Languages. Markup & Query Languages

CMSC 330: Organization of Programming Languages. Markup & Query Languages CMSC 330: Organization of Programming Languages Markup & Query Languages Other Language Types Markup languages Set of annotations to text Query languages Make queries to databases & information systems

More information

CMSC 330: Organization of Programming Languages

CMSC 330: Organization of Programming Languages CMSC 330: Organization of Programming Languages Markup & Query Languages Other Language Types Markup languages Set of annotations to text Query languages Make queries to databases & information systems

More information

Static Webpage Development

Static Webpage Development Dear Student, Based upon your enquiry we are pleased to send you the course curriculum for PHP Given below is the brief description for the course you are looking for: - Static Webpage Development Introduction

More information

Cassandra & CassandraObject. Michael Koziarski

Cassandra & CassandraObject. Michael Koziarski Cassandra & CassandraObject Michael Koziarski michael@koziarski.com Intro to Me I Don t Have To Scale Intro to Cassandra Distributed Fault Tolerant Elastic The Ring A F B E C D The Ring A F B E C

More information

Web System Development with Ruby on Rails

Web System Development with Ruby on Rails Web System Development with Ruby on Rails Day 7(8/Nov/2012) Relational Database Today's Theme Learn Relation Structure in Relational Database Understand how to describe the relational structure Add new

More information

Alper VAHAPLAR

Alper VAHAPLAR Alper VAHAPLAR 2017 2018 DDL (Data Definition Language) Database and table creation, update and delete operations, DML (Data Manipulation Language) Data Entry, query, update and delete operations, DCL

More information

SmartList Senior Project Paper

SmartList Senior Project Paper Brandon Messineo Dr. Jackson SmartList Senior Project Paper We live in a world where technology is used frequently. We use technology to tell the time, predict the weather, write a paper, or communicate

More information

Bringing Together One ASP.NET

Bringing Together One ASP.NET Bringing Together One ASP.NET Overview ASP.NET is a framework for building Web sites, apps and services using specialized technologies such as MVC, Web API and others. With the expansion ASP.NET has seen

More information

GraphQL. Concepts & Challenges. - I m Robert Mosolgo - Work from home Ruby developer - From Charlottesville VA - For GitHub

GraphQL. Concepts & Challenges. - I m Robert Mosolgo - Work from home Ruby developer - From Charlottesville VA - For GitHub GraphQL Concepts & Challenges - I m Robert Mosolgo - Work from home Ruby developer - From Charlottesville VA - For GitHub Rails API WHY - You have your Rails app, why bother with an API? - You have clients.

More information

Database Application Architectures

Database Application Architectures Chapter 15 Database Application Architectures Database Systems(Part 2) p. 221/287 Database Applications Most users do not interact directly with a database system The DBMS is hidden behind application

More information

Ajax On Rails: Build Dynamic Web Applications With Ruby By Scott Raymond READ ONLINE

Ajax On Rails: Build Dynamic Web Applications With Ruby By Scott Raymond READ ONLINE Ajax On Rails: Build Dynamic Web Applications With Ruby By Scott Raymond READ ONLINE Let's take a look at how we can accomplish this with AJAX in Rails. Overall, I was quite surprised at how easy it is

More information

Introduction to PHP. Handling Html Form With Php. Decisions and loop. Function. String. Array

Introduction to PHP. Handling Html Form With Php. Decisions and loop. Function. String. Array Introduction to PHP Evaluation of Php Basic Syntax Defining variable and constant Php Data type Operator and Expression Handling Html Form With Php Capturing Form Data Dealing with Multi-value filed Generating

More information

MongoDB Web Architecture

MongoDB Web Architecture MongoDB Web Architecture MongoDB MongoDB is an open-source, NoSQL database that uses a JSON-like (BSON) document-oriented model. Data is stored in collections (rather than tables). - Uses dynamic schemas

More information