How to use split or join to split a tag links

In

users/_form.html.erb

there is a list of interests which are spaced out with a space, e.g. "comic superhero happy". When I save the user's interests they appear in the users/show.html.erb file as one long link as in the attached image.