Monday, 29 July 2013

Pry within rails4 console

#config/application.rb
module YourApp
class Application < Rails::Application
console do
require "pry"
config.console = Pry
end
end
end
#add to the gemfile
group :development, :test do
gem 'pry'
end
#rails console
rails c
cd YourModel
#read more
#https://github.com/pry/pry
view raw gistfile1.rb hosted with ❤ by GitHub

No comments:

Post a Comment