Created
September 3, 2013 07:21
-
-
Save maveonair/6420652 to your computer and use it in GitHub Desktop.
Sometimes it is not possible to add the pry-rails gem to a rails project. For this reason a starting the rails console with pry and execute the following ruby code:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# start rails console first: | |
# bundle exec pry -r ./config/environment | |
require rails | |
require 'rails/console/app' | |
require 'rails/console/helpers' | |
extend Rails::ConsoleMethods | |
ActiveRecord::Base.logger = Logger.new(STDOUT) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment