you'll get an error, since Tokamak standard builders - e.g., Tokamak::Builder::Xml, is depending on a standard mimetypes (application/xml & text/xml in this case). So at present moment in order to use custom mimetypes monkey-patching is required:
Tokamak::Builder::Xml.class_eval do
builder_for "application/vnd.foobar+xml"
end
I suggest the workaround is to define a method like "add_mimetype":
Now if using Rails+Restfulie you'll define a custom app XML mimetype in config\initializers\mime_types.rb, such as:
you'll get an error, since Tokamak standard builders - e.g., Tokamak::Builder::Xml, is depending on a standard mimetypes (application/xml & text/xml in this case). So at present moment in order to use custom mimetypes monkey-patching is required:
I suggest the workaround is to define a method like "add_mimetype":