Kendall Buchanan wrote:
@thing = Thing.all
respond_to do |format|
I have a hunch, however, that separate mime types for different views is
inappropriate, or is this good? Any thoughts?
I have a hunch that your hunch is correct. At least in the sense that
you present here. There is a fundamental concept of the REST
architecture that I believe Rails tends to make somewhat obscure. The
concept I'm referring to is the fundamental definitions of resources and
It is tempting to think of a "resource" (in Rails) as the combination of
a controller and a model, but that is not really the case.
Take for example this table from Fielding's Dissertation on REST:
Table 5-1: REST Data Elements
Data Element | Modern Web Examples