Skip to content

Instantly share code, notes, and snippets.

Suchitra Edussuriya-Essl Sessl

Block or report user

Report or block Sessl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Sessl
Sessl / gist:7440774
Last active Dec 28, 2015
Rapid Prototyping with Ruby on Rails - Week 2 Quiz
View gist:7440774
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 Dec 27, 2015
Rapid Prototyping with Ruby on Rails - Week 1 Quiz
View gist:7273855
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?
You can’t perform that action at this time.