alternative to script/console using ripl
Ruby
Latest commit 6ebb042 Feb 9, 2014 @cldwalker doc tweaks
Permalink
Failed to load latest commit information.
bin
lib/ripl
.gemspec
CHANGELOG.rdoc
CONTRIBUTING.md
LICENSE.txt
README.rdoc
Rakefile
deps.rip

README.rdoc

Description

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

Install the gem with:

gem install ripl-rails

Setup

Add ripl-rails to your Gemfile:

gem 'ripl-rails', :require => 'ripl/rails'

Executable Usage

$ ripl rails
Loading development environment (Rails 3.2.8)
# Interact with your usual console methods: app, reload!, controller, helper
>> ...

Plugin Usage

The ripl plugin can be used to create Rails app-specific shells:

require 'ripl'
require 'ripl/rails'
# App specific setup
Ripl.start

Credits

  • janlelis

  • wuputah