What is wrong here?
Haml::Engine.new('= image_tag("golfer.png")').render
image_tag is always undefined (ActionView :: Helpers are not loaded). How can i fix this? thank!
I think I found a solution.
class TagHelper include Singleton include ActionView::Helpers::TagHelper include ActionView::Helpers::AssetTagHelper end puts Haml::Engine.new('= image_tag("golfer.png")').render(TagHelper.instance)
Source: https://habr.com/ru/post/1773051/More articles:Komodo Edit: how to update directory tree status - komodoeditsame class, different size ...? - c ++Publishing ASP.NET 3.5 Web.config Site Sheet Empty due to providerOptions - asp.netPrintDocument N of N pages - c #Is the cycle running at the same speed for all systems? - c #Draw a distorted image on canvas html5 - html5Best practices for working with multiple Windows browsers and / or tabs - htmlMorphia and MongoDB - Modeling Something like settings - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1773055/how-can-i-write-to-all-users-to-their-hkeycurrentuser-using-inno-setup&usg=ALkJrhj1v_nnPWWmG4tnI7mFQoVna9XTogSSIS Population Slowly Using Outrigger - sqlAll Articles