I would like to make multi-line text in Rails, the action looks like this:
def mutli_text
render :text => 'Word1\nWord2'
end
and I expect the answer to be:
Word1
Word2
Sorry, I get Word1 \ nWord2
Any help would be appreciated
(The action should display a multi-line response in order to get the jquery autocomplete plugin)
source
share