#317 Rack App from Scratch pro
Rack comes with many helpful utilities such as request and response objects, various middleware, and MockRequest for testing. Here I cover all of these while building a Rack app from scratch.
- Download:
- source code
- mp4
- m4v
- webm
- ogv
Thanks so much for this one. There's also a decent tutorial on heroku's website that shows you how to build a static site using rack - link here http://devcenter.heroku.com/articles/static-sites-on-heroku
Thanks for that link murdoch. Useful little Rack example.
Ryan this is great, I've been recently wondering about the possibility of using Rack to power a really simple web site that just barely isn't static, but doesn't require most of the power of Rails. I wasn't really sure where to start, but this is a fantastic intro and has me well on my way. Thanks!!
You can look into Sinatra or Padrino
Weird, just got interested in Rack a week ago and here comes another good episode, by the way I found this screencast and I taught Ryan was covering basic things I already came across and instead I learn many new and useful stuff! - thanks thanks again
http://stackoverflow.com/questions/7701113/rack-error-racklintlinterror-response-body-must-respond-to-each
Excellent. Very clear. Does one really get a great performance gain by just using rack with a bunch of middleware for a simple app? Also, I'm thinking this is just instructive, as sinatra seems to cover most everything with minimal overhead already. Thanks again.
You can see that you are basically writing a primitive version of Rails.
Nice to see how the internals work!