Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rails backtrace silencer for ajax requests
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
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.