fix respond_to for rails 2.0