def helper_method
"<a href='#{movie_path(user.wants_to_see_movies.first)}'>#{user.wants_to_see_movies.first.title.titleize}</a>".html_safe
end
I'm trying to generate a link from above helper method but instead it's showing up as Wants to see <a href='/movies/2'>Spectre</a> in the view.
- First, what am I doing wrong? I thought html_safe would solve this.
- Is there a way to do this with a link_to instead?