How can I create an inline WYSIWYG editor where I can attach Images to the content I’m editing?
[This is an excerpt from an email I answered on the Rails-Talk list today] That’s actually pretty hard, but with…
Never, ever, ever use jQuery wrapInner() method on your body element
Just don’t do it. http://stackoverflow.com/questions/10727002/jquery-document-ready-fires-twice
Warning: Adding Active Model Serializer will Change the Behavior of to_json
If you haven’t worked with JSON endpoints and/or Active Model Serializer much there’s some specific nuances to keep in mind…
How to Install Old Versions of Node and NPM
Generally programmer wisdom is to “stay current” with the latest versions of working software. However, this is not always feasible.…
CSS Pro Tips
An anti-pattern is a set of practices or habits (in the context of computer programming) that although are common and…
10 Tips for New Rails Developers or New Teams
One of the often under appreciated situations in web development today are thing inherent to the process that create blockers…
Capybara debugging Javascript
Debugging Javascript in Capybara feature specs can be challenging (to say the least), because AFAIK you can’t drop ‘debugger’ into…
rake db:rollback does nothing, no rollback is performed and no error message is shown
I just discovered something relatively simply that eluded me since the very start of my career in Rails. You’re working…
Using number type on an input field causes reformatting with commas when form is submitted
An important gotcha of some HTML5 semantic web stuff: An input of type=”number” attribute on an input and discovered that…
Pushing to Heroku
What you may miss off-the-bat is that Heroku’s copy of your app is actually a git repository. It’s like github’s…