↧
Answer by Akash Srivastava for Inline styling in Rails 4 erb
Ok I guess I found a solution, using a truncate over html_safe that includes special characters was producing problems, when the entire text including the nbsp; and inline styling was cut short due to...
View ArticleAnswer by Rajdeep Singh for Inline styling in Rails 4 erb
Do this insteadtruncate(job_profile.description +' <font color="#999">[ '+ list.join(', ') +' ]</font>', :length =>...
View ArticleInline styling in Rails 4 erb
So I am stuck with a small issue while migrating a legacy project from Rails 3.2 to 4.2Inside one of our views (erb), the code (Rails 3.2)html_safe(truncate(job_profile.description...
View Article