Tweak rails console with more useful defaults
Ruby
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
.ruby-version
CONTRIBUTORS.txt
Gemfile
LICENSE.txt
README.md
Rakefile
rails-console-tweaks.gemspec

README.md

rails-console-tweaks

Customize Rails console with more useful defaults.

Useful for local development as well as inspecting production system output.

Introduces an optional Bundler group to control what gems are loaded into your console. This is uesful to prevent console specific gems from being loaded into your production environment

Features

  • autoload gems in console group into your console
  • print all SQL statments executed within the current console
  • (optional) auto enable HIRB to pretty print ActiveRecord objects
  • (optional) auto start WIRB to colorize ruby object inspection

Installation

# Gemfile
gem 'rails-console-tweaks'

# add any gems that should be available only to the console
group :console do
  gem 'wirb'
  gem 'hirb'
  gem 'awesome_print'
end

That's it! No extra configuration is necessary!

Contributing

  • Fork the project
  • Fix the issue
  • Add unit tests
  • Submit pull request on github

See CONTRIBUTORS.txt for list of project contributors

Copyright

Copyright (c) 2011 Ryan Sonnek See LICENSE.txt for further details.