Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4633

How to print directly to HAML buffer?

$
0
0

I'm trying this (haml 6.3.0):

def my_helper  Haml::Helpers.html_concat('Hello, world!')end

Then, in my.haml I do this:

- my_helper

However, I'm getting:

NoMethodError: undefined method `html_concat' for Haml::Helpers:Module

What is the right method? Please, don't suggest to use = my_helper. My real case is much more complicated and I do need to print to the buffer directly instead of returning a string.


Viewing all articles
Browse latest Browse all 4633

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>