-1
I have a @keyword variable which holds the string "cat dog mouse bird"
I want to display the values of each word under a span element.
My algorithm looks like
<%= @keyword.split.each {|key| "<span>#{key}</span>".html_safe %>
but when viewing it, it displays an array of [cat dog mouse bird]
This question appears to be off-topic because it is about programming – slhck – 2013-11-01T15:47:14.987
Should get a better answer here http://stackoverflow.com/
– sgtbeano – 2013-11-01T15:53:32.147