> I'd suggest that for this simplest case the following syntax be
> possible:
>
>      respond_to(:html, :js)

I'll buy a patch to do that.

> Even more, we could have a reasonable default type preference order,
> so that calling respond_to is not needed at all, for these simple
> cases where there's no custom code needed for each type.

Please expand on this. How would this look? Often times you don't have
an js option for something, so if we just expect you to an error would
occur. Instead of now, where we just do a 406.
--
David Heinemeier Hansson
http://www.loudthinking.com -- Broadcasting Brain
http://www.basecamphq.com   -- Online project management
http://www.backpackit.com   -- Personal information manager
http://www.rubyonrails.com  -- Web-application framework
_______________________________________________
Rails-core mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to