1 修改请求方式
参照:[url]http://stackoverflow.com/questions/2456219/add-a-custom-format-in-rails-that-will-work-with-respond-to[/url]
参照:[url]http://stackoverflow.com/questions/2456219/add-a-custom-format-in-rails-that-will-work-with-respond-to[/url]
# add in Environment.rb
Mime::Type.register "text/markdown", :markdown