fix respond_to for rails 2.0, fixes #250