Custom router & middleware implementation
-
Implement basic authentication middleware which redirects to 401 page unless password is
ILoveRuby
-
Implement custom router that handles following types of requests:
GET
,POST
-
Implement custom controller that responds to the following actions:
index
,create
,show
index
should render some basic html templatecreate
- easy-version: should redirect to the page which displays passed params
- hard-version: there should be a persistance layer so that this action creates a model and redirects to it
-
There should be a separate file for routes definition
-
There should be helper methods for rendering & redirection
-
RSpec tests