· 1 min read
Screencast: Pry in Rails verwenden
Downloads in verschiedenen Formaten:
Resourcen:
bash
[bash] gem install pry pry-doc rvm gemset use global pry pry -r ./config/environment [/bash]
pry
[bash] help cd Article cd first cd name nesting exit ls ls -h ls -m ls -M ls Array -M show-doc Article#in_groups_of show-doc all show-doc all.in_groups_of show-method all.in_groups_of edit-method all.in_groups_of .ls .cat Gemfile [/bash]
Gemfile
[ruby] gem ‘pry’, :group => :development [/ruby]
models/article.rb
[ruby] binding.pry [/ruby]