Skip to content

A prototype of Ruby on Rails framework implementation based on WEBrick middleware

Notifications You must be signed in to change notification settings

ycai2/ruby-on-highway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby on Highway

A vanilla Ruby framework to connect controller and views

Usage

Clone the repo

ruby bin/run.rb

A List of features & functionalities

All features are implemented using only vanilla Ruby

  1. Runs Rack server
  2. Renders templates with ERB (Embedded Ruby)
  3. Stores sessions in cookies and HTTP header
  4. Stores temporary response in Flash
  5. Routes URLs and invokes actions with Regex
  6. Handles exceptions and renders full stack trace
  7. Serves static assets from public folder

Test Routes

Root
localhost:3000

Index

/
/dogs         

Create a new dog

/dogs/new

Exceptions

/raise
/nil

About

A prototype of Ruby on Rails framework implementation based on WEBrick middleware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published