So I am stuck with a small issue while migrating a legacy project from Rails 3.2
to 4.2
Inside one of our views (erb), the code (Rails 3.2
)
html_safe(truncate(job_profile.description +' <font color="#999">[ '+ list.join(', ') +' ]</font>', :length => 100))
produces the following text:
if it's not clear job_profile.description
resolves to Test
and likewise list.join(', ')
to English Listening Comprehension
Now the same code in Rails 4.2 produces the following:
Tried many options to reproduce the original result but didn't succeed. Suggestions ?