Hi everyone!
Guys I am facing very irritating problem of line breaks in text area, i used “gsub” method to replace \r\n to , but i didn’t got the result as was i expecting.
Could anybody give me any suggestions to resolve this issue?
this is actually what i thought you are trying to achieve after
reading this:
i used "gsub" method to replace \r\n to <br/>
now, i don't know what your data looks like, but you surely could use
split! to split a string into several parts and output the resulting
array like this:
, that was not an issue of waiting actually I thought my emails are going some where else due to this message of boxbe, so thats why.
Now come to real issue, actually Mayer i have a text area for entering a list of developers or list of anything like this
Abcd
this is my second line
this is my third line
now whenever i want to display this thing as a list it comes to me like a paragraph,
i tried these
simple_fromat(@vteam.developers)
and
simple_fromat(sanitize(@vteam.developers))
and
(@vteam.developers).gsub(“\r\n”,“ ”)
but none these worked.
Why don't you just do a team has_many developers and add a text_field
with developers that can be added??? Entering the developers in a text
area as a list does not sound like a good idea...
If you had many developers you would just create the list with
team.developers.each and you are golden...