To Exam Info
IT231 -- Review Guide for Final
Bring to Final
Study
- Course Notes, especially Review Questions at the beginning of each
lecture.
 
- Final Review Questions
 
- Projects 4, 5, 6, and the Final Website Project.
 
- The textbook will help fill in the gaps in your knowledge.
 
Exam Format
- Exam questions will be of the following possible formats:
 Definitions; Short Answer; Short Essay; Multiple Choice;
Computer Problems.
 
Definitions
- Ruby, Rails, DRY, controller, 
view, action, layout, route, HTML vs. XHTML, CSS, scaffold, CRUD, 
helper function, 
Rails datatypes, Rails helper methods (stylesheet_link_tag, image_tag,
link_to), IRB, IRB delimiters (<%=, <%, %>),
Ruby datatypes, REST, HTTP (GET, POST, PUT,
HEAD, DELETE), 5 ways to run Ruby(IRB, batch Ruby script, ERB,
Rails console, load script from Rails console), 
Ruby classes (FixNum, Float,
Time, String, TrueClass, FalseClass, Array; see the 
UML Examples Page for methods.  
instance variable, method,
Ruby object methods common to many objects (new, to_s, to_i,
to_f, class, methods),  Ruby datatypes (integer, floating point, 
string, boolean), Ruby operators (=, +, -, *, /, %, ==, <, >, <=, >=, !=,
<=>),   Ruby control structures (if..else, while), Ruby builtin
methods (print, random, STDIN.gets), FormTagHelper methods (form_tag,
text_field_tag, select_tag, radio_button_tag, submit_tag), 
FormHelper
methods (form_for, text_field, select, radio_button, submit) 
model creation software, scaffold creation
software, rake, hex color code, ActiveRecord methods (new, find(id),
find with conditions, dynamic finder methods,  all, save, delete(id), 
delete_all), fat model,
validation, one-many relationship, one-way encryption, one-way encryption
(hash, also called digest), base-16,  migrations 
(add column to
table, remove column from table), state, 
session variable. 
Be Able To
- Create a Rails project.
 
- Create a Rails controller with some views.
 
- Explain the three steps of adding a new view to a controller 
after the controller has already been created.
 
- Modify the HTML and CSS files of a Rails project.
 
 
- Set the background color for the body, h1, h2, h3, or a
- Set the text color for the body, h1, h2, h3, or a
- Set the font family for the body, h1, h2, h3, or a
- Set the font size for the body, h1, h2, h3, or a.
- Set the font weight (bold or normal) for the body, h1, h2, or h3.
- Set the width and height of an image.
 
 
- Convert a base-10 color code to a hex color code and vice versa.
 
- Know the hex color codes for the 17 standard HTML named colors.
 
- Write views that are compatible with a layout.
 
- Use the Rails helper functions stylesheet_link, image_link, link_to.
 
- Create a Rails application using scaffold software, according
to a simple database design.
 
- Create a model using Rails model creation software, according
to a simple database design.
 
- Modify a Ruby command line application to display output from the
controller on a web page using IRB.
 
- Write a Rails project that displays an image on a form according to
calculations in the controller (like Project 4). 
 
- Use these Rails ActiveRecord methods to extract or modify the
data in the database.
 
 
all  
count  
delete  
delete_all  
find  
save  
 
 
- Explain what an array is and how it is used in Rails.
 
- Test these methods of the Array class:
 
 
new  
length  
empty?  
delete_at  
*  
<<  
[ ]  
each  
collect  
 
 
- Know what FormTagHelper or FormHelper controls are most appropriate
to use.
 
- Use FormTagHelper or FormHelper controls to input data.
 
- Convert a page that contains FormTagHelper controls to a page
with FormHelper controls that stores input data in a database.
 
- Write views that use the ActiveRecord methods to 
store or access data.
 
- Manipulate a database by issuing Ruby statements at
the Rails console window.
 
- Set up a one-many relationship between two models.
 
- Set up validation for controls on a form: validates_presence_of,
validates_numeriality_of, validates_uniqueness_of, validates_format_of.
 
- Explain what a session variable is.
 
- Use a session variable to hold state information.
 
- Use Digest::SHA2.hexdigest to encode passwords.
 
- Write Rails migrations to add a column or remove a column from a
database.
 
- Given source code for a Rails project, find the errors.
 
- Given scaffold-generated source code for a Rails project with
a one-to-many relationship, modify the source code as requested.