I am on the 12th hour of programming, so I might have missed something simple, but any suggestions on this issue?
in my app_helper i added a module for redcarpet filter with haml
module Haml::Filters::Redcarpet include Haml::Filters::Base include ActionView::Helpers::TagHelper def render(text) options = [:autolink, :smart, :hard_wrap, :no_intraemphasis] content_tag(:div, Redcarpet.new(text.to_s, *options).to_html.html_safe, :class => "markup" ) end end
works great in development. but in production he throws
[ !EXCEPTION! ] NoMethodError: undefined method 'content_tag' for Haml::Filters::Redcarpet:Module
why was that? or what can i check? I even ran the console in production and was able to turn on TagHelper and use these methods. puzzled ...
source share