Improvements for Rails's respond_with behaviour