Posted almost 7 years ago. Visible to the public. Linked content.

Persist Rails or IRB Console Command History After Exit

Create, or edit your ~/.irbrc file to include:

Copy
require 'irb/ext/save-history' IRB.conf[:SAVE_HISTORY] = 2000 IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history"

By refactoring problematic code and creating automated tests, makandra can vastly improve the maintainability of your Rails application.

Owner of this card:

Avatar
Thomas Klemm
Last edit:
almost 3 years ago
by Florian Leinsinger
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Thomas Klemm to makandra dev
This website uses short-lived cookies to improve usability.
Accept or learn more