Skip to content

Instantly share code, notes, and snippets.

@vast
Created April 28, 2010 08:44
Show Gist options
  • Save vast/381881 to your computer and use it in GitHub Desktop.
Save vast/381881 to your computer and use it in GitHub Desktop.
Interactive console for sinatra + activerecord
require 'my-sinatra-app'
require 'sinatra/activerecord/rake'
desc "run irb console"
task :console, :environment do |t, args|
ENV['RACK_ENV'] = args[:environment] || 'development'
exec "irb -r irb/completion -r my-sinatra-app"
end
@bauerpl
Copy link

bauerpl commented Apr 11, 2013

You can also try http://rubygems.org/gems/tux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment