簡體   English   中英

類`ActionView :: Base'的未定義方法`render'

[英]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)

可能是什么問題?

完整跟蹤https://gist.github.com/5e3244d488068c9d0ba7

如果您在助手中使用渲染,則必須包含該功能!

include AbstractController::Rendering

希望能幫助到你

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM