News for hackers. Stuff that matters.
Re:Ask HN: State of Django vs. Rails? by guoxiaotian on Tuesday February 19, 2013 @07:14PM (#5248090)
with Ruby 1.9 you don't need the '=>' for hash values:

    class Person < ActiveRecord::Base
      attr_accessible :first_name, :last_name
      validates :first_name, length: { maximum: 30 }
      validates :last_name, length: { maximum: 30 }
    end

There are no comments on this comment yet.