Records

Newest first
  1. 086 New on edge Rails: JSON serialization of ActiveRecord objects reaches maturity The last time I wrote about ActiveRecord#to_json on edge Rails, it was missing some key functionality. For one, you couldn't include any associations. Another thing was you couldn't do something like this in your controller: @authors = Author.find(:all) render :json… JavaScript · Ruby on Rails
  2. 087 So apparently I'm a Rails Hackfest winner... Got an email not too long ago from Working With Rails (my profile) entitled "WWR September Hackfest Winner - Congrats!", and almost deleted it thinking it was spam. I read it in the end (after all, how often… Open Source · Personal · Ruby on Rails
  3. 088 What's new in Firefox 3: Pasting text into search bar to be 100% less annoying Now if you're a regular user of Firefox, you've probably already had the opportunity to be dismayed by how you cannot copy and paste text with newlines into the search bar. All you end up with is the… Browsers · Mozilla
  4. 089 New in Edge Rails: helper for creating form labels Edge Rails now comes with a helper for creating form labels, so in your views, instead of doing this: <% form_for(:user, @user, :url => user_path(@user)) do |f| -%> <label for="user_login">Login</label> <%= f.text_field :login %> <end> where the <label> is given a for attribute… Ruby on Rails · Web development
  5. 090 New in Edge Rails: Serialize ActiveRecord objects to JSON with ActiveRecord#to_json Converting ActiveRecord instances to their JSON representation has always been a topic that has been dear to me. I'd tried to get a patch that adds to_json to ActiveRecord into Rails (but the quality of my patch was… JavaScript · Ruby on Rails