New in Rails 8.1: Bring Your Favorite Editor to Error Pages
Rails 8.1.0 (released on October 22, 2025) brings a new feature that allows you to open the file that caused the error in your favorite editor.
To enable this feature, you need to set either EDITOR or RAILS_EDITOR environment variable with the path to your editor, for example:
# .bashrc / .zshrc
export RAILS_EDITOR="cursor"Then, when you are taken to the error page, click on the pencil icon to open it in your editor:
A new ActiveSupport::Editor class has been added to handle the editor functionality, check the pull request for more details.
Written on November 20, 2025