Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rails backtrace silencer for ajax requests

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 xilence.gemspec
README.md

Xilence

How often have you got 500 error while developing some super-cool ajax thing and seen stuff like this in your browser console?

Safari console rails backtrace noise

Do we really need to scroll down all that HTML/CSS noise each time looking on rails error backtrace? Wanna make your backtraces clean and quiet for ajax requests?

Xilence removes all that annoying HTML and CSS code from your rails backtrace for ajax requests.

Just open your firebug/safari console and click on the broken ajax action link and you should see something like this:

Firebug xilence output

Installation

In Rails 3 and Bundler, add the following to your Gemfile:

group :development do
  gem 'xilence', '~> 2.0.0'
end

If you still use rails 2, look at rails_2 branch.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.