PageRenderTime 383ms CodeModel.GetById 201ms app.highlight 0ms RepoModel.GetById 181ms app.codeStats 0ms

/ruby-mode/Ruby on Rails/Model/model.vf

http://github.com/ridgetang/snippets
Unknown | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | 0ddb79b489a26c590b68b24ed48a514f MD5 | raw file
1#name : validates_format_of
2#key : vf
3#group : rails.model
4#condition : (rails/model?)
5# --
6validates_format_of :${1:email}, :with => ${2:/\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i}