Oooh… I’m gonna throw my own spin on this and say tha it should not be
create… but instead a retrieve. While it’s true you might be
new dump, you actually want to “GET” the configuration from the system.
Just like when you request a resource that might be XML,. you don’t
a new dump of the objects in xml” , you request them as xml, and you
@foos.to_xml, where Rails creates the XML on the fly and renders it.
class ConfigurationsController < ApplicationController
@some_model = SomeModel.build_configuration
# some rendering to the view, or send_file, or send_data or
That, to me, seems the appropriate method. UNLESS you really are letting
people create a configuration that you want to persist somewhere for
retrieval, then the create action might be appropriate. But it sounds
like you really are doing a RETRIEVAL, so that sounds like GET