A vanilla Ruby framework to connect controller and views
Clone the repo
ruby bin/run.rb
- Runs Rack server
- Renders templates with ERB (Embedded Ruby)
- Stores sessions in cookies and HTTP header
- Stores temporary response in Flash
- Routes URLs and invokes actions with Regex
- Handles exceptions and renders full stack trace
- Serves static assets from public folder
Root
localhost:3000
Index
/
/dogs
Create a new dog
/dogs/new
Exceptions
/raise
/nil