Rails has a bunch of JavaScript helpers, but once you move beyond those and want to write your own JavaScript code for your application, you may find yourself dealing with some JSON produced on the server-side.
By default, the to_json method in Rails is probably a lot more verbose than most people want. I’ll share a few tips on how to tame it.
Question: How can I slim down the output of to_json in Rails?
Continue Reading…
Posted in Development | No Comments »
JavaScript is not Ruby, but it does offer syntax that can lead to expressive code. There’s one case where JavaScript could have gone a step further and given us even more expressive code syntax, when dealing with object literals or anonymous objects.
Continue Reading…
Posted in Development | No Comments »
It’s been a long time since I’ve worked on a Rails project, but it feels good to finally get back to Ruby on Rails.
Continue Reading…
Posted in Development | No Comments »
Opera’s built-in mail client has a number of features to help manage and organize email messages. Here I’ll share my strategies for managing the ‘ol inbox using labels.
Continue Reading…
Posted in Productivity | 2 Comments »
One of the many useful features in the Opera browser’s built-in mail client is called labels. You get seven of them to play with, but by default only a couple have useful names. Here’s how to change them to whatever you like.
Continue Reading…
Posted in Productivity | 1 Comment »