CS 142 Lecture Notes: FormsSlide 1 Simple Form Value1: Value2:

Slides:



Advertisements
Similar presentations
1 SMT News Flash, FAQs and Twitter March 23, 2012 Processes and Storyboards Access, Control & Convenience.
Advertisements

CS 142 Lecture Notes: FormsSlide 1 Simple Form Product: Price:
CS 142 Lecture Notes: FormsSlide 1 Simple Form Product: Price:
Paramount Health Group Benefit Portal for XL India Employees
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
Introduction to MVC Action Methods, Edit View, and a Search Feature NTPCUG Dr. Tom Perkins.
Pennsylvania Department of Environmental Protection Office of Oil and Gas Management Oil and Gas Production/Waste Reporting Offline Spreadsheet Report.
EMPLOYEE EMERGENCY CONTACT SYSTEM.  Employee Emergency contact system is an internet based portal where employees can update their safety status.  Portal.
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.
CS 142 Lecture Notes: Rails ActiveRecordSlide 1 Model for Student Table SELECT * FROM students; | id | name.
1 Lab Session-I (A and B) CS-120 Fall 2000 Using Windows Using An Editor Using Visual C++ Using Compiler Writing and Running Programs Lab-1 DUE Fri September.
CS 142 Lecture Notes: FormsSlide 1 Simple Form Value1: Value2:
CS 142 Lecture Notes: FormsSlide 1 AJAX Basics xhr = new XMLHttpRequest(); xhr.onreadystatechange = xhrHandler(); xhr.open("POST", url); xhr.send(postData);...
Help Manual for Stage 1,Submit Bid Hash (Bid Preparation) on DAE portal.
Paramount Health Group Benefit Portal for CSCIL Employees
Project Implementation for COSC 5050 Distributed Database Applications Lab5.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Microsoft Office 2003: Advanced 1 ADVANCED MICROSOFT ACCESS Lesson 7 – Modifying Table Design.
- -Heather Rodriguez, - Shilpa Reddy. Goal - One stop shop for Undergrad Competitions.
Unit 7 – Working with Forms 1. Creating a form 2. Accessing the submitted data 3. Common operations on forms.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Homework for October 2011 Nikolay Kostov Telerik Corporation
AQS Web Quick Reference Guide Changing Raw Data Values Using Maintenance 1. From Main Menu, click Maintenance, Sample Values, Raw Data 2. Enter monitor.
E-Volunteer AGENCY ADMINISTRATION
MAIL MERGE Designing Documents with. Terms Mail Merge: A process that inserts variable information into a standardized document to produce a personalized.
WEB PRICING SYSTEM User Manual. Click here to Log In The Defense Commissary Agency Vendor Price Change system is located at
Chapter 10 Creating Pop-Up Windows, Adding Scrolling Messages, and Validating Forms HTML5 & CSS 7 th Edition.
Team ELL System Requirements Ladakeysha Thomas Elizabeth Waldo LaWanda Warren Brandon Williams.
1 Dr Alexiei Dingli Web Science Stream Helpers, Forms and Layouts.
Integrating JavaScript and HTML5 HTML5 & CSS 7 th Edition.
The art of generating correspondence through the web.
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.
CSCI 6962: Server-side Design and Programming AJAX Tools in JSF and ASP.
Associations INFO 2310: Topics in Web Design and Programming.
CS 142 Lecture Notes: Rails ActiveRecordSlide 1 Model for Student Table SELECT * FROM students; | id | name.
CS 142 Lecture Notes: Rails ActiveRecordSlide 1 Model for Student Table SELECT * FROM students; | id | name.
Saving Form Data You can save form data in Google Spreadsheets using the following steps. 1.Create a Google Spreadsheet in your documents 2.Use Tools to.
Microsoft Office 2013: In Practice Chapter 4 Creating and Using Forms and Reports Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Physics Exercise Generation and Simulation Interface Welcome! Login as Student Login as Instructor Register as Instructor Register as Student.
Mediclaim Portal for The Digital Group InfoTech pvt. ltd. Employees
® IBM Software Group © 2006 IBM Corporation Using JSF Mini-Calendar Controls This section describes how to use a JSF Mini-Calendar Control with EGL It.
Create, Update and Delete Carol Wolf Computer Science.
CSCI 6962: Server-side Design and Programming JSF DataTables and Shopping Carts.
CS 142 Lecture Notes: Rails ActiveRecordSlide 1 Model for Student Table SELECT * FROM students; | id | name.
Enter the URL Enter the URL. 2. Enter the Password 1. Enter the login ID 3. Click on submit button 3. Click on submit button.
BIT 286: Web Applications Lecture 04 : Thursday, January 15, 2015 ASP.Net MVC -
Paramount Health Group Benefit Portal for HUAWEI Employees
Section led by Ivan Lee Reachable at ivan period lee at cs period stanford period edu 1.
CS 142 Lecture Notes: FormsSlide 1 Simple Form Product: Price:
Rails and routing INFO 2310: Topics in Web Design and Programming.
Form Validation. Create a form for the user to enter the data seen blow.
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:
Lecture Notes for Revisiting Use Case Descriptions.
© 2007 by Prentice Hall9-1 Introduction to Oracle 10g Chapter 9 Customizing Forms James Perry and Gerald Post.
Chapter Five Objectives Insert Data into tables Create Query files to insert data into tables Make changes to the data in the tables Extract data from.
Understanding DATA Goals: understand the difference between data and text by thinking about computability learn some basic data types.
Learning Aim C.  In this section we will look at how text, tables, forms and frames can be used in web pages.
Templates. Several options available when using Templates.
Unity Application Generator How Can I… Export variables of a Control module, modify the Initial values and import the list back into UAG.
BIT 286: Web Applications Lecture 04 : Thursday, January 15, 2015 ASP.Net MVC -
MetaData Metadata is data about data. It is that documentation about data and everything you do it It can be as simple as a date and an author or pages.
Benefit Portal for CSCIL Employees
MIS Professor Sandvig MIS 324 Professor Sandvig
Model for Student Table
In the home page, click on “Reports”
Model for Student Table
Engrade Discussions.
Presentation transcript:

CS 142 Lecture Notes: FormsSlide 1 Simple Form Value1: Value2:

CS 142 Lecture Notes: FormsSlide 2 Rails Form Helpers {:action => :modify, :id do |form| %> Name: Date of birth:... Name of model class (Student) Name of variable containing data Initial value will Text to display in submit button

CS 142 Lecture Notes: FormsSlide 3 Post Action Method def = Student.find(params[:id]) then redirect_to(:action => :show) else render(:action => :edit) end Hash with all of form data Redirects on success

CS 142 Lecture Notes: FormsSlide 4 Validation class Student < ActiveRecord::Base def validate if (gpa 4.0) then errors.add(:gpa, "must be between 0.0 and 4.0") end validates_format_of :birth, :with => /\d\d\d\d-\d\d-\d\d/, :message => "must have format YYYY-MM-DD“ end Custom validation method Built-in validator Saves error info

CS 142 Lecture Notes: FormsSlide 5 Error Message Helper {:action => :modify, :id do |form| %>...

CS 142 Lecture Notes: FormsSlide 6