register ttl mime type
This commit is contained in:
parent
2fedbc0787
commit
16a6c15725
2 changed files with 4 additions and 1 deletions
|
@ -20,7 +20,7 @@ class MapsController < ApplicationController
|
||||||
end
|
end
|
||||||
format.json { render json: @map }
|
format.json { render json: @map }
|
||||||
format.csv { redirect_to action: :export, format: :csv }
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -3,3 +3,6 @@
|
||||||
|
|
||||||
# Add new mime types for use in respond_to blocks:
|
# Add new mime types for use in respond_to blocks:
|
||||||
# Mime::Type.register "text/richtext", :rtf
|
# Mime::Type.register "text/richtext", :rtf
|
||||||
|
|
||||||
|
# RDF export
|
||||||
|
Mime::Type.register "text/turtle", :ttl
|
||||||
|
|
Loading…
Add table
Reference in a new issue