渲染状态:403导致"缺少模板"错误

时间:2015-09-09 14:09:40

标签: ruby-on-rails ruby-on-rails-4 render status http-status

我在before_filter中有一些方法,我尝试渲染status: 403。然后我明白了:

Missing template v1/examples/index, v1/base/index, application/index with {:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :vcf, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}.

但是我可以在没有此错误的情况下呈现nothing: truetext: 'some text'。我做错了什么?

0 个答案:

没有答案