CIT 597 Quiz 9: Rails
Fall 2008, David Matuszek
Name_________________________________________
(15 points) Rails is based on three philosophical principles. What are they? (Just name, don't describe.)
(15 points) Rails uses three environments. What are they? (Just name, don't describe.)
(10 points) A Rails
controller
method must end in one of two ways. What are they?
(10 points) An
.rhtml
file is a Ruby HTML file. Tell how to include...
...executable statements that do computations but do not produce output:
...expressions whose value is to be inserted into the
.rhtml
page:
(20 points) Briefly define the following terms:
layout
partial
fixture
migration
(5 points) Briefly, what does Ruby's
h
method do?
(5 points) What is the one thing that Rails
cannot
do when creating a web application?
(10 points) Name the two kinds of scripting command used by Rails.
(5 points) A
validation
checks the legality of something. What is that something?
(5 points) What is
YAML
used to describe?