This provides an alternative to script/console and a ripl Rails plugin to be reused with app-specific shells. Compatible with Rails 2.3.x, Rails 3.x and Rails 4.x.
Install the gem with:
gem install ripl-rails
Add ripl-rails to your Gemfile:
gem 'ripl-rails', :require => 'ripl/rails'
$ ripl rails Loading development environment (Rails 3.2.8) # Interact with your usual console methods: app, reload!, controller, helper >> ...
The ripl plugin can be used to create Rails app-specific shells:
require 'ripl' require 'ripl/rails' # App specific setup Ripl.start