Post on 18-May-2015
merb“came for Rails,stayed for Ruby”
/whois merb
•MVC web framework
•kinda like rails
•ezmobius & wycats
•started as a hack
•http://pastie.org/14416
•3 parts: core, more, plugins
•rack based
•thread safe
•less opinions
•ORM agnostic
•view agnostic
•JS agnostic
•“no code is faster than no code”
merb-core
•actionpack light
•routing, controllers, bootloader, rack
•merb-guts
merb-more•the rest of actionpack, with a little activesupport
•merb-mailer, merb-haml, merb-action-args
•often useful, but not critical
merb-plugins
•sometimes useful
•important enough, maintained by merb team
•merb_activerecord, merb_helpers, merb_test_unit
0.9.Xthe great rewrite
•merb started in ’06
•complete(ish) rewrite beginning Jan ’08
•moved to github
•defined public/private API’s
•rack support
done right’s
render/display
•what the action returns, the client is served
•explicit
•render a view
•display a resource
merb-action-args
•allows an action to receive parameters as arguments
•uses ParseTree
regex routes
•complex routes that don’t always fit the slash as a separator pattern
•routing based on patterns rather than name arguments
merb && rspec•lots of custom helpers & matchers
•controller spec’ing is super easy
•view matchers use Hpricot
we ain’t got no rspec
•merb_test_unit
•works great with shoulda
•merb_stories
distributed MVC•Aaron Wheeler documented it first in merb
•used in feather(blog) for plugin system
•Models, Views, Controllers in one package
merb-slices
•Engines that suck less
•Implemented in the public API
•authentication slice: merb-auth, can_has_auth
•we like can_has_auth
end•wiki.merbivore.com
•#merb on freenode
•merb on groups.google.com
•planet.merbivore.com
•Merb + DataMapper @ LSRC
(or is it)
merb-cache
•almost ready, not yet
•fundamental store: MemcachedStore, FileStore
•strategy store: GzipStore, PageStore, ActionStore
•Complex stores that implement advanced caching techniques
•agilewebdevelopment.com/plugins/action_cache
•www.igvita.com/2008/02/11/nginx-and-memcached-a-400-boost/