rails c
如何查看rails c的历史命令?
rails c无法直接通过命令查找history,通过它的日志文件
lines = File.read("#{ENV['HOME']}/.pry_history")
puts lines
或者
lines = File.read("#{ENV['HOME']}/.irb-history")
puts lines
lines = File.read("#{ENV['HOME']}/.pry_history")
puts lines
lines = File.read("#{ENV['HOME']}/.irb-history")
puts lines