Small Ruby Webstack
by Bert Goethals on Oct 18, 2009
- 2,120 views
Short presentation showing Rack and Sinatra, for when Rails is just to much.
Short presentation showing Rack and Sinatra, for when Rails is just to much.
Accessibility
Categories
Upload Details
Uploaded via SlideShare as Apple Keynote
Usage Rights
© All Rights Reserved
Statistics
- Likes
- 0
- Downloads
- 13
- Comments
- 0
- Embed Views
- Views on SlideShare
- 2,110
- Total Views
- 2,120
Our small server is not visible
Radiant’s core => 174908 loc (usually extended with plugins and own code)
Rails’s core => 131990 loc
Basically it translates http to ruby
Basically it translates http to ruby
Default Merb
46595 loc
Each class in use stack is called Middleware
ActionController::Failsafe will render 500.html if it catches an exception
Rails::Rack::Metal is basically a wrapper around middleware for ease of use in a rails app
...
Your own... insert google analytic tags, filter out bad words...
- verb (get, post, put, delete)
- URI, supporting parameters, wildcards and regex
- And it should (usually) respond
- erb + haml + builder from files, inline, or defined template methods
- With layout files!
- erb + haml + builder from files, inline, or defined template methods
- With layout files!
Passing allows for better structured code
404’s
and error handeling
Sinatra for non-data driven apps (isdemax.be, design prototyping)