ruby on rails - Use blank space to indent -


I have a dropdown that uses line gems and orders order order order.

The following code in the controller

  @lines = ancestor_punis (line. Alorez (: order = & gt; 'name')) {| I | "# {'-' * i.depth} # {i.name}"}  

I am trying to change the indenting character, "# {'-' On a double space, but the railing ignores "# {'' '] like a location.

Is there any way that I can force it to give it a blank space? /p>

The space is ignored by the rail, but not by the rail, you can change each location to & Amp; Nbsp; (non-breaking space), but do not forget to include .html_safe at the end of the string.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -