I have a string:
str="Myname"
I want to add four white spaces after the string. What I did was:
str=str+" "+"somename"
When I print the str
as <%= str %>
, the output shows only one white space. How can I make this work? I also tried:
str=str+" "*4+"somename"
This also gives the same output as the one above gives. I don't want to print this. The string is used as a Ruby variable for more other operations. I can make it in Ruby, but not in RoR.