better_errors

https://github.com/charliesome/better_errors

Ruby

Better error page for Rack apps

BetterErrors.editor

Returns a proc, which when called with a filename and line number argument,
returns a URL to open the filename and line in the selected editor.

Generates TextMate URLs by default.

  BetterErrors.editor["/some/file", 123]
    # => txmt://open?url=file:///some/file&line=123

Source | Google | Stack overflow

Edit

git clone [email protected]:charliesome/better_errors.git

cd better_errors

open lib/better_errors.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-BetterErrors-editor-for-pr


# Commit to git

git add lib/better_errors.rbgit commit -m "better docs for BetterErrors.editor"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-BetterErrors-editor-for-pr

hub pull-request


# Celebrate!