:content_type 设置返回内容的 MIME 类型 render :file => filename, :content_type => 'application/rss' :layout 指定 layout :status 指定返回的 HTTP 代码 :location 指定 HTTP 头中的 Location 字段 Rails 生成的 controller 代码中, create.js…
:content_type 设置返回内容的 MIME 类型 render :file => filename, :content_type => 'application/rss' :layout 指定 layout :status 指定返回的 HTTP 代码 :location 指定 HTTP 头中的 Location 字段 Rails 生成的 controller 代码中, create.js…
讨论
登录后参与讨论
还没有评论,来说第一句吧。