Search code examples
rubysinatraerb

Can I concatenate the result of two helper methods in single erb output


I created a helper to output some text using erb

<%= helper_method %>

but if i tried to put it 2 times it will not work ..for eg..

<% =  
helper_method  
helper_method  
%>

I am expecting the text twice...but I get only once...


Solution

  • try something like

    <%= %Q(#{helper_method} #{helper_method}) %>