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=123Edit
git clone [email protected]:charliesome/better_errors.git
cd better_errors
open lib/better_errors.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-BetterErrors-editor-for-pr
# Commit to gitgit add lib/better_errors.rbgit commit -m "better docs for BetterErrors.editor"
# Open pull requestgem 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!