Where would you put code to which you want all of your controllers to have access?
How do the default routes decide which requests to send to your controller?
What does the
self.up method do in a
What three steps does the
How do you test to find out whether a submitted field is blank?
How can you retrieve all of the values for a given field?
How can you find a set of values that match a certain condition?
How can you retrieve just the first item of a set?
The default routes assume that the controller name follows the first slash within
the URL, that the controller action follows the second slash, and that the ID value
follows the third slash. If there’s a dot (
.) after the ID, then what follows the dot is considered the format
if @name.blank? then
something to do if blankend
To retrieve a set of values, use