Scott - 3DM Design Q&A: How to Customize Rails to_json output?

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…

Scott - 3DM Design JavaScript Variables and Anonymous Objects

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…

Scott - 3DM Design Back to Rails

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…

Scott - 3DM Design Using Opera Labels to Manage Email

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…

Scott - 3DM Design Rename Opera Mail Labels

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…