22 Feb '12, 1am

Episode 326: ActiveAttr

class Message include ActiveAttr::Model attribute :name attribute :email attribute :content attribute :priority # type: Integer, default: 0 attr_accessible :name, :email, :content validates_presence_of :name validates_format_of :email, :with => /^[-a-z0-9_+\.]+\@([-a-z0-9]+\.)+[a-z0-9]{2,4}$/i validates_length_of :content, :maximum => 500 end

Full article: http://railscasts.com/episodes/326-activeattr

Tweets

ASCIIcast 326 - ActiveAttr

ASCIIcast 326 - ActiveAttr

railscasts.com 25 Feb '12, 7pm

that can help with this. It’s described by its author Chris Greigo as “what ActiveModel left out” which is a fair descript...

Ruby5 Episode #248: Pelusa, Kronk, Enumerize, c...

ruby5.envylabs.com 21 Feb '12, 5pm

Februry 17th, 2012 We've been tuning some parameters on the ArildBot 2000 and it sounds almost human in this episode. Febr...

Episode #247 - Februry 17th, 2012

ruby5.envylabs.com 17 Feb '12, 9pm

February 14, 2012 It's Valentine's Day and on this episode we Deliver Newman to the Lion, while the Little Guys go on a An...