Quantcast
Channel: Inline styling in Rails 4 erb - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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 Article


Answer by Rajdeep Singh for Inline styling in Rails 4 erb

Do this insteadtruncate(job_profile.description +'&nbsp;&nbsp;<font color="#999">[ '+ list.join(', ') +' ]</font>', :length =>...

View Article


Image may be NSFW.
Clik here to view.

Inline 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
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>