> Not necessarily. My specific use-case is with sending an AJAX request (via
> the jquery-ujs) for an HTML snippet. The jQuery callbacks look at the
> response code, and so it is useful to have control over them without needing
> to resort to respond_to or format.html{ ... }.

I think your best bet will be to subclass the responders and remove
this 'browser vs api' distinction.  We won't be able to remove those
without breaking lots of people's apps.  Currently it's a feature that
you can safely say have code like this and have it redirect browsers
back to the index action.

respond_with(@comment, :status=>:created)



-- 
Cheers

Koz

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to