![](/img/trans.png)
[英]Undefined method `cache_template_extensions=' for ActionView::Base:Class (NoMethodError)
[英]undefined method `render' for class `ActionView::Base'
當我啟動應用程序時,由於以下錯誤而崩潰
/home/stereodenis/.rvm/gems/ruby-1.9.3-p194@nyanya/gems/haml-3.1.6/lib/haml/helpers/action_view_mods.rb:15:in `alias_method': undefined method `render' for class `ActionView::Base' (NameError)
可能是什么問題?
如果您在助手中使用渲染,則必須包含該功能!
include AbstractController::Rendering
希望能幫助到你
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.