Maximiliano Usich Software Developer

Think the best of others

  • github.com/maximilianou
  • simpledoers.eth
  • CodersRank
  • Indeed

Thursday, April 23, 2009

Ruby on Rails, model, validate alphanumeric and space characters


class Product < ActiveRecord::Base
...
validates_format_of :name, :with => /^([[:alpha:]]|[[:blank:]])+$/
Posted by maximilianou at Thursday, April 23, 2009
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

maximilianou
View my complete profile

Blog Archive

  • ►  2024 (2)
    • ►  January (2)
  • ►  2022 (1)
    • ►  July (1)
  • ►  2021 (6)
    • ►  August (1)
    • ►  July (2)
    • ►  February (2)
    • ►  January (1)
  • ►  2020 (5)
    • ►  December (4)
    • ►  October (1)
  • ►  2019 (9)
    • ►  March (1)
    • ►  February (6)
    • ►  January (2)
  • ►  2018 (7)
    • ►  December (6)
    • ►  November (1)
  • ►  2017 (1)
    • ►  August (1)
  • ►  2012 (1)
    • ►  May (1)
  • ►  2011 (1)
    • ►  September (1)
  • ►  2010 (1)
    • ►  March (1)
  • ▼  2009 (11)
    • ►  May (4)
    • ▼  April (5)
      • Flash Messages, System Messages, Ruby on Rails, by...
      • ruby on rails i18n
      • Ruby on Rails, model, validate alphanumeric and sp...
      • Survive in php.. a logger method.
      • Conceptual views and Implementation Details.
    • ►  March (1)
    • ►  February (1)
  • ►  2008 (15)
    • ►  October (14)
    • ►  September (1)
  • ►  2007 (2)
    • ►  June (1)
    • ►  March (1)
Travel theme. Powered by Blogger.