Explore Other Ruby Frameworks

If you made it all the way to the end of this book, you probably have developed some level of fondness for Rails. Nonetheless, you may find that Rails is more than you need, not quite appropriate for the work you want to do, or otherwise annoying. You may even want to supplement your Rails application with something written using a different framework. If you’re interested in exploring further, these are a few of the available options:

Rack (http://rack.rubyforge.org/)

A very minimalist piece of middleware, more of a web server interface, that mostly provides a way to connect servers with other Ruby frameworks. It implements a simple direct connection to HTTP requests, and supports handlers that connect to different web servers, letting you switch servers however seems convenient.

Merb (http://merbivore.com/)

Originally Mongrel plus ERb, Merb started out as a simple tool for supporting file uploads alongside Rails, but developed into a very different framework. Merb provides a few packages for key things, but the basic gem is deliberately minimal. There is an object-relationship manager, but that’s a separate plug-in, as are view helpers, object-relational mappers, etc. Merb builds on Rack. Routing lets you choose different kinds of handling—event handling to optimize for requests that last a short time or threaded server to optimize longer requests.

Merb very deliberately avoids the “magic” of Rails’ naming conventions, which makes it harder ...

Get Learning Rails now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.