register ttl mime type

This commit is contained in:
Devin Howard 2017-01-16 17:11:55 -05:00
parent 2fedbc0787
commit 16a6c15725
2 changed files with 4 additions and 1 deletions

View file

@ -20,7 +20,7 @@ class MapsController < ApplicationController
end
format.json { render json: @map }
format.csv { redirect_to action: :export, format: :csv }
format.rdf { redirect_to action: :export, format: :rdf }
format.ttl { redirect_to action: :export, format: :ttl }
end
end

View file

@ -3,3 +3,6 @@
# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf
# RDF export
Mime::Type.register "text/turtle", :ttl