Is there any way to respond to the .yml extension?
I tried, but can't make it work.
respond_to do |format|
format.xml
format.yml {render :text => @labels.to_yaml, :content_type => 'text/yaml'}
end
In the above code, the following error is subtracted uninitialized constant Mime::YML
source
share