undefined method `render' for class `ActionView::Base'

随声附和 提交于 2020-01-15 03:57:06

问题


When I start the application crashes following error

/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)

What maybe wrong?

full trace https://gist.github.com/5e3244d488068c9d0ba7


回答1:


If you are using a render inside a helper you have to include the functionality!

include AbstractController::Rendering

Hope it helps



来源:https://stackoverflow.com/questions/11816118/undefined-method-render-for-class-actionviewbase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!