ruby on rails - Erubis block helper throwing error with concat -
I have some block helpers, here's a simple example of what I'm doing:
def wrap_foo foo, & amp; Block data = capture (and block) content = "& div; div class = \" foo \ "id = \" # {foo} \ "& gt; # {data} & lt; / div & gt;" concat ( Contents) End
I'm just trying to get the Erbis and this is giving me the following error:
T Hope this! You were probably hoping to be an example of Aare, there was an error while evaluating zero. & Lt; & Lt;
Removes the error by removing the call concat
but not ending with my cover
Using it:
- Rail 2.3.5
- Erbis 2.6.5
- And tried that Beta helps better (2.6.4 though) and Rail 2.3 .
Actually using it, which was my last goal, is a fix for this .
I just had to change my assistant to concat (content.html_safe!)
Comments
Post a Comment