If you have a rhtml and a rjs template for the same action, my
understanding is that the action code will have to look at least like
this:
respond_to do |type|
type.html
type.js
end
I'd suggest that for this simplest case the following syntax be
possible:
respond_to(:html, :js)
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.
Am I making sense? Did I get this stuff right? Let me know what you
think about it and I'll see if I can get a patch going.
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core