2005-09-23から1日間の記事一覧
メモメモ。ISBNだとこんな感じ。 class Book < ActiveRecord::Base validates_format_of :isbn, :with => /^[0-9]{1}[0-9]{3,5}[0-9]{4}[0-9A-Z]{1}$/ end
メモメモ。ISBNだとこんな感じ。 class Book < ActiveRecord::Base validates_format_of :isbn, :with => /^[0-9]{1}[0-9]{3,5}[0-9]{4}[0-9A-Z]{1}$/ end