require 'sinatra' get '/hi' do "Hello World!" end. Put this in your pipe. $ gem install sinatra $ ruby hi.rb == Sinatra has taken the stage ... >> Listening on 0.0.0.0: ...
Link: sinatrarb.com
New feature release, Contrib and Recipes By Konstantin Haase on Friday, September 30, 2011 We’re proud to announce two new releases today: 1.3.0 and 1.2.7. We’re also simultaneously releasing sinatra-contrib and would like to officially announce the recently launched Sinatra Recipes p...
This extension is part of the Sinatra::Contrib project. Run gem install sinatra-contrib to have it available. Sinatra::Namespace Sinatra::Namespace is an extension that adds namespaces to an application. This namespaces will allow you to share a path prefix for the routes within the n...
List of locals passed to the document. Handy with partials. Example: erb "<%= foo %>", :locals => {:foo => "bar"} default_encoding String encoding to use if uncertain. Defaults to settings.default_encoding . views Views folder to load templates from. Defaults to settings.views . layou...
This extension is part of the Sinatra::Contrib project. Run gem install sinatra-contrib to have it available. Sinatra::JSON Sinatra::JSON adds a helper method, called json , for (obviously) json generation. Usage Classic Application In a classic application simply require the helper, ...
This extension is part of the Sinatra::Contrib project. Run gem install sinatra-contrib to have it available. Sinatra::Reloader Extension to reload modified files. Useful during development, since it will automatically require files defining routes, filters, error handlers and inline ...
To use ActiveRecord’s migrations with Sinatra (or other non-Rails project), add the following to your Rakefile: namespace :db do desc "Migrate the database" task(:migrate => :environment) do ActiveRecord::Base.logger = Logger.new(STDOUT) ActiveRecord::Migration.verbose = true ActiveRe...
README Documentation Contribute Code Crew About Sinatra require 'sinatra' get '/hi' do "Hello World!" end Put this in your pipe $ gem install sinatra $ ruby -rubygems hi.rb == Sinatra has taken the stage ... >> Listening on 0.0.0.0:4567 and smoke it
Sinatra 1.4.0, 1.3.6, 1.2.9 released! By Konstantin Haase on Friday, March 15, 2013 I’ve just released Sinatra 1.4.0, 1.3.6 and 1.2.9. Find out what’s new in 1.4 on my blog .