CS 683 Emerging Technologies Fall Semester, 2005 Doc 26 Rails Miscellaneous Dec 1, 2005 Copyright ©, All rights reserved. 2005 SDSU & Roger Whitney, 5500.

Slides:



Advertisements
Similar presentations
1. XP 2 * The Web is a collection of files that reside on computers, called Web servers. * Web servers are connected to each other through the Internet.
Advertisements

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails.
Doc.: IEEE /220 TGd Report July 2000 Bob OHara, Chairman, TGdSlide 1 TGd Report July 2000 Meeting San Diego, CA.
DOS & Windows O/s Prof. Sujata Rao Less 5.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
The Librarian Web Page Carol Wolf CS396X. Create new controller  To create a new controller that can manage more than just books, type ruby script/generate.
CS 142 Lecture Notes: Rails Controllers and ViewsSlide 1 Simple Rails Template
Principles of Information Technology
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.
Campus Specific Admission Practices. Fall 2011 Admission 60,107 Applications received 44,901 Freshmen applications 14,751* Freshmen offered admission.
CS 683 Emerging Technologies Fall Semester, 2005 Doc 25 Rails Transactions, Sessions, Filters Nov 29, 2005 Copyright ©, All rights reserved SDSU.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 42 Web Services.
15-Jun-15 Rails and Ajax. HTML Forms The... tag encloses form elements (and usually includes other HTML as well) The arguments to form tell what to do.
CS 683 Emerging Technologies Fall Semester, 2005 Doc 21 Rails Intro Nov 10, 2005 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500 Campanile.
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.
Chapter 1 Computer Networks and the Internet. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. 1-2.
1 Copyright (c) [2000]. Roger L. Costello. All Rights Reserved. Using XSLT and XPath to Transform XML Documents into Text Files Roger L. Costello XML Technologies.
CS 635 Advanced Object-Oriented Design & Programming Spring Semester, 2006 Doc 2 Terms & Testing Jan 24, 2006 Copyright ©, All rights reserved SDSU.
CS 683 Emerging Technologies Fall Semester, 2005 Doc 22 Rails Basic Action Pack & Active Record Nov 15, 2005 Copyright ©, All rights reserved SDSU.
CS 580 Client-Server Programming Spring Semester, 2006 Doc 21 Some GUI Apr 13, 2006 Copyright ©, All rights reserved SDSU & Roger Whitney, 5500 Campanile.
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
How the World Wide Web Works
Domain Name Services And IP Addressing. Domain Name Services Domain name is a way to identify and locate computers connected to the Internet. No two organizations.
Networks Chapter 3. 2 What Is The Internet? It's not a big truck. It's a series of tubes. Ted Stevens, former Alaskan Senator, 6/28/2006 Internet: global.
OBJECTIVES  What is HTML  What tools are needed  Creating a Web drive on campus (done only once)  HTML file layout  Some HTML tags  Creating and.
MVC & ActiveRecord by Christian Mohr & Mohamed Souiai.
 The World Wide Web is a collection of electronic documents linked together like a spider web.  These documents are stored on computers called servers.
How to upload files to Altervista Overview:
ITEC 1001 Tutorial 1 Browser and Basics. Web browser software & Web pages The Web is a collection of files that reside on computers, called Web.
Adding Links Learning Web Design: Chapter 6. Lesson Overview Using the anchor tag Linking to other pages with relative or absolute pathnames Linking to.
Ruby on Rails Presenter: Michael Mayer 30-March-2006 Network RPI This presentation was adapted from a ThoughtWise presentation By Obie Fernandez;
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
Routes & REST & URL-helpers & validations & filters
Campus Specific Admission Practices Natha Kraft Manager, Prospective Student Center.
‘Digital Sharing’. The Upload and Download Why? Children are already social networking Life and business depends on social networking We are expected.
Rails & Ajax Module 5. Introduction to Rails Overview of Rails Rails is Ruby based “A development framework for Web-based applications” Rails uses the.
Free Traffic Profits How to Get Free Traffic to Your Website To Make More Profits.
© 2010 Megabyte Systems, Inc. All rights reserved. Setting up a new Document Type for Image Indexing Create a new directory Create a new directory.
CSCI N241: Fundamentals of Web Development Copyright ©2006  Department of Computer & Information Science Navigation, Links & Images.
NO MORE FLASH DRIVES How to get your stuff printed at school.
Rails and routing INFO 2310: Topics in Web Design and Programming.
CS 160 and CMPE/SE 131 Software Engineering February 9 Class Meeting Department of Computer Science Department of Computer Engineering San José State University.
The Controller Carol Wolf Computer Science. Rails generate commands  Using the generate command, you can create a number of useful objects.  Rails:
© ExplorNet’s Centers for Quality Teaching and Learning 1 Objective % Understand advanced production methods for web-based digital media.
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.
1Copyright © 2008, Printer Working Group. All rights reserved. PWG Plenary Status Report MFD Working Group February 7, 2008 Irvine, CA PWG F2F Meeting.
Advanced Accounting Information Systems Day 28 Introduction to XBRL October 30, 2009.
Web Server Design Week 3 Old Dominion University Department of Computer Science CS 495/595 Spring 2006 Michael L. Nelson 1/23/06.
Presented by Alexey Vedishchev Developing Web-applications with Grails framework American University of Nigeria, 2016 Part VI: Mapping URLs.
Computer Technology Internet, ethics, and . EthicsInternetMisc.Internet
NBPS Computer Logins, Accounts, and User Storage Del Kunert Director of Technology Confidential and Proprietary to New Brunswick Public Schools Slide.
CS7026: Authoring for Digital Media HTML Authoring
E-commerce | WWW World Wide Web - Concepts
Copyright © 2006 Pearson Addison-Wesley. All rights reserved.
E-commerce | WWW World Wide Web - Concepts
Knowledge Byte In this section, you will learn about:
Copyright © 2006 Pearson Addison-Wesley. All rights reserved.
How files are organized
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Submission Title: [Wireless Display Throughput Requirements]
Submission Title: [Wireless Display Throughput Requirements]
Ajax on Rails 28-Nov-18.
Copyright © 2006 Pearson Addison-Wesley. All rights reserved.
Model – View – Controller Pattern
Chapter 15 Introduction to Rails.
Presentation transcript:

CS 683 Emerging Technologies Fall Semester, 2005 Doc 26 Rails Miscellaneous Dec 1, 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 & Hanson, The Pragmatic Bookshelf, 2005 Action Pack Documentation,

3 Sending Data class ExampleController < ApplicationController def grades sample_grades = "cat,10,4,2 dog,8,1,2" send_data(sample_grades, :type => "text/cvs", :disposition => "attachment") end def file logger.info(File.expand_path('sampleGrades')) send_file("sampleGrades", :type => "text/cvs", :disposition => "attachment", :filename => "grades") end Internet Media types - File location: root directory of rails instance

4 Mapping URLs to Controllers & Actions ActionController::Routing::Routes.draw do |map| map.connect ':controller/service.wsdl', :action => 'wsdl' map.connect ':controller/:action/:id' end config/routes.rb = {:controller => 'foo', :action => 'bar', :id => 'cat' }

5 URL Mapping Rules Components separated by forward slash Pattern component of form :name sets parameter name to what is in the corresponding position in the URL Pattern components of form *name accepts all remaining parts of URL as an array All other pattern component matches itself exactly in the corresponding location in the URL map.connect 'store/:controller/buy/:id' = {:controller => 'computer', :id => 'xbox' map.connect 'whitney/:year/:month/:day', :controller => 'blog', :action=> "show_date", :requirements=> {:year => /(19|20)\d\d/, :month => /[01]?\d/, :day => /[0-3]?\d/}, :day=> nil = {:controller => 'blog', :action => 'show_date', :year => '2005', :month=> '01', :day=> '30'}

6 Rails Overview