Class: Admin::ExportController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/admin/export_controller.rb

Instance Method Summary collapse

Instance Method Details

#exportObject



2
3
4
# File 'app/controllers/admin/export_controller.rb', line 2

def export
  render :text => Radiant::Exporter.export(params[:type] || 'yaml'), :content_type => "text/yaml"
end