当我启动应用程序时出现以下错误
/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
希望能帮助到你
关于ruby-on-rails - 类 `render' 的未定义方法 `ActionView::Base',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11816118/