Rails environment, using rspec: spit out objects and things to the console with puts
it 'checking a thing' do
puts activity # where activity is the name of an object
puts activity.class
# etc
end
- Rails console:
bundle exec rails c
git log -S 'managed_overview_counts' -p
-p
gives you the diff in Terminal (for easier copy/pasting if you need it)
Ack! I can't believe I forgot about ack
.
git log --name-only --pretty=format: commit1..commit2
-
Give me the last
#
lines of a file (i.e. a log)tail -n 100 log/development.log