32 rack resources to get you started

Source: Internet
Author: User

Rack

What the heck is rack and why is it getting so much press lately? Well, from it's tag-line: "rack provides an minimal interface between webservers supporting Ruby and Ruby frameworks ."

But what does that mean? Prior to rack if you wanted to interface with mongrel or thin you had to write your own custom wrapper for talking to that web server. rack standardized the interface for doing that and even added some icing on the cake.

Resources

  • Rack homepage-this is the official rack home page. There's a mirror on GitHub as well.
  • Rack on GitHub-this is the official rack source repository.
  • Rack-contrib-this is the repository for rack middleware and different rack utilities. It's a great starting point for examples.
  • Rack-development-the official rack Google group. It's a great place to ask questions or get help with rack related troubles.
  • Rack: Test and Its rdoc. Much like Rack is a standard interface for talking to Web servers, Rack: test is a standard interface for testing rack apps.
Tutorials and links

  • Introducing rack by Christian neukirchen. Christian is the author rack and this is the introductory blog post about it.
  • Introduction to rack middleware-this tutorial goes through what Rack middleware is and gives an example of writing an ASCII shrimp middleware in your application.
  • Creating a rack middleware for Minifying your JavaScript files-this post by Luciano panaro is less of a tutorial than a full fledged middleware with explanation but it is a solid example to learn from.
  • Adding cache headers by Vidar hokstad is another example of creating a middleware for a specific purpose.
  • Rack middleware asciicast the same version of The railscast below but in text form.
  • Ruby rack middleware tutorial-this tutorial goes over the call chain and gives a real world example.
  • Flash uploaders, rails, Cookie based sessions and csrf: rack middleware to the rescue! -This is one of the better tutorials out there because it starts with a real world problem and demonstrates how to solve it.
  • It's only rack on rails but I like it-Noel rappin goes through and gives a brief introduction to rack, why it's good for rails, and how to use it from a rails app.
  • How to setup and use Rack: cache with rails 2.3-the title is pretty self explanatory.
  • Rack: Test tutorial-simply test any rack-compatible app.
  • Rails metal introduction is an awesome introduction to rails metal by Jesse Newland.
  • Plugging rack into rails-another rack/rails tutorial.
  • How to rackup-this is from the official rack Wiki and explains what rackup files are and hwo to use them.
Screencasts, videos, and presentations

  • Rack presentations on the rack GitHub wiki.
  • Jon Crosby's mountainwest Ruby conf presentaiton-in a world of middleware, who needs monolithic applications?
  • Rack middleware railscast-Ryan Bates usual high quality screencasts on how to create a rack Middleware
  • Rails metal railscast-an introduction to creating rails metal APPs by Ryan Bates
  • Rack basics-Remi goes in to the very basics of rack.
  • Rack Part 2-going over rackup files, creating an executable rack application, using middleware, reloading
  • Rack middleware-what it is, how to write your own, using it in Sinatra and rails
  • Another rack middleware screencast
Middleware

  • List of rack Middleware on the rack wiki.
  • Rack-Cache-HTTP reverse proxy cache (Google group ). if you want to invoke E using HTTP caching to its fullest check out this link. it has a few links that explain HTTP caching as well.
  • CSS variables and a tutorial for using it.
  • Hancock-client is a Sinatra app and rack middleware piece for the Hancock SSO server.
Documentation

    • rails on rack gives you rails and rack specific information. this was suggested by Hubert lepicki in the comments.
    • rack documentation (rdoc)
    • rack specification


Related posts:

    1. Rails metal call order

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.