Skip to content
This repository has been archived by the owner on Jan 6, 2018. It is now read-only.

burke/linkify_errors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinkifyErrors

LinkifyErrors is a really ugly hack to turn your in-browser Rails backtraces into clickable links that open in your editor. Each line is turned into a link that, when clicked, opens your editor to that file and line immediately.

The 14 second video demo does a better job explaining than this README.

Requirements

  1. Rails 3.1

  2. OS X

Installation

  1. Add the linkify_errors gem to your Rails 3.1 Gemfile

    gem "linkify_errors"
    
  2. Download the helper application and install it.

  3. Download More Internet and install it. Open the PrefPane, and create a new protocol called “editfile”. Drag your new “EditFile” application onto the box to choose it as the helper for this new editfile protocol.

  4. The application is set up by default to use emacsclient. You can edit “/Applications/EditFile.app/editfile” to change this. It’s a shell script that gets called with “123@/Users/name/path/to/file”. Do whatever you want within. The example below might work for textmate

    $(echo $1 | sed 's/^\([0-9]*\)\@\(.*\)$/mate -l\1 \2/')
  5. Bask in the glory of hyperlinked backtraces.

Is this secure?

No. Don’t use it. A puppy will die.

Releases

No releases published

Packages

No packages published

Languages