Skip to content

Instantly share code, notes, and snippets.

@ruanwz
Created September 10, 2010 04:21
Show Gist options
  • Save ruanwz/573088 to your computer and use it in GitHub Desktop.
Save ruanwz/573088 to your computer and use it in GitHub Desktop.
Sinatra is designed to need friends
no presets
pure ruby
rack-lover
Rack is the best friend
Rack::Session::Cookie
Rack::CommonLogger
Rack::MethodOverride
rack-contrib
Rack::Profiler
Rack::JSON-P
Rack::Recaptcha
Rack::MailExceptions
Rack::Cache
Rack::URLMap seperate apps by path or host
Directory Structure
rails way
multi apps way
Some common tasks need these friends
CRUD: shotgun,haml,sequel
Unit Test: Rack::MockRequest, Rspec|Test::Unit|Shoulda
Authentication: Warden, Rack::OpenID, gems:warden-openid, warden-oauth
Ajax: jQuery
No respond_to, only case ... when ... using params[]
Two web services may help: heroku, disqus
Heroku: Minimal effort to deploy app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment