发送'发布'请求,我在我的日志中得到这个。
Processing by SubgroupsController#add_timespan as */*
这是什么意思?
答案 0 :(得分:1)
Log告诉以下内容:
Controller_name#action_name as response Mime Type
以下是默认Rails Mime类型列表:
"*/*" => :all
"text/plain" => :text
"text/html" => :html
"application/xhtml+xml" => :html
"text/javascript" => :js
"application/javascript" => :js
"application/x-javascript" => :js
"text/calendar" => :ics
"text/csv" => :csv
"application/xml" => :xml
"text/xml" => :xml
"application/x-xml" => :xml
"text/yaml" => :yaml
"application/x-yaml" => :yaml
"application/rss+xml" => :rss
"application/atom+xml" => :atom
"application/json" => :json
"text/x-json" => :json
来源(http://apidock.com/rails/Mime)
有关更深入的信息(我对此知之甚少),请查看文档(http://api.rubyonrails.org/classes/ActionController/MimeResponds.html)和此博文(http://ryanbigg.com/2009/04/how-rails-works-2-mime-types-respond_to/)