From at least Rails 4, the ActionView tag helper turns Array values of HTML options into a single space-separated...
This is a presentation from 2019-01-21. Summary We want to move away from jQuery in future projects
When building an application that sends e-mails to users, you want to avoid those e-mails from being classified...
The Ace editor is a great enhancement when you want users to supply some kind of code (HTML, JavaScript, Ruby...
Deployment ready for Opscomplete Copying view and controller templates over to target application during basics configuration or via...
jQuery's removeClass removes the given class string from an element collection. If you want to remove multiple/unknown classes matching...
TL;DR: All modern browsers default to using the element as the main document viewport. In CSS, prefer to set...
...HTML's accepts a single file. You can allow multiple files via . But sometimes, selecting multiple files is not enough...
When writing a story description in Pivotal Tracker, there is now a tiny button at the bottom of the description...
Flexbox is awesome. Most of it even works in IE11, but flex: 1 won't work reliably in Internet Explorer...
Most forms have a single submit button that will save the record when pressed. Sometimes a form needs additional submit...
Google Chrome has a subtle rendering bug that hits me once in a while. It usually occurs in sliders with...
As a web developer, you know Google Analytics (GA). Probably you've dropped the GA snippet into more than one...
Rails defines a #truncate helper as well as a method String#truncate. = truncate("my string", length: 5) = "my string".truncate...
The 90s are calling: they want their tables back. Unfortunately, you need them all for laying out your HTML emails...
TL;DR Append your locale keys with _html to have them marked as html_safe and translate them with = t...
When your application is running on a multi-server setup, application logs are stored per server (unless you choose a...
You know that you can use jQuery's text() to get an element's contents without any tags.
For outputting a given String in HTML, you mostly want to replace line breaks with or tags.
Lets say we have a user with a contract whereas contract is a mounted carrierwave file. Now we want to...
Rails offers a way to prepend (or append) view paths for the current request. This way, you can make the...
Form fields can be rendered as noneditable by setting the disabled or the readonly attribute. Be aware of the differences...
When a Rails controller action should handle both HTML and JSON responses, do not use request.xhr? to decide that. Use...
This is painful. Consider using Microsoft Office or switching careers. If you need to write < 20 letters consider doing it...