Skip to content

Instantly share code, notes, and snippets.

View Sessl's full-sized avatar

Suchitra Edussuriya-Essl Sessl

View GitHub Profile
@Sessl
Sessl / gist:7440774
Last active December 28, 2015 04:09
Rapid Prototyping with Ruby on Rails - Week 2 Quiz
Week 2 Quiz
1. Name all the 7 ( or 8) routes exposed by the 'resources' keyword in the routes.rb file. Also name
the named routes, and how the request is routed to the controller/action.
routes: if the application has a controller called Posts for example, the router matches
HTTP Verb and URL of an inbound request to different actions in the controller.
HTTP Verb Path(URL) Action Used for
GET /posts index displays the list of all posts
@Sessl
Sessl / gist:7273855
Last active December 27, 2015 05:28
Rapid Prototyping with Ruby on Rails - Week 1 Quiz
1. Why do they call it a relational database?
It is a collection of tables of data items which are created according to the relational model.
In the relational model a table is called a relation, which is a set of tuples (rows) that have
the same attributes /columns (data structure). A tuple represents an object and information about it.
The domain and constraints of an attribute apply to all data that are referenced by that attribute.
Data are stored and accessed through relations.
2. What is SQL?