Railsã§ã¯ããªãã¼ã·ã§ã³(Validation)ã¨ããä»çµã¿ãããã¾ãã ãã©ã¼ã ãªã©ã§ã¦ã¼ã¶ã¼ããã®å ¥åå¤ãDBã«ä¿åããåã«ãã®å¤ãæ£ãããã®ãã¢ãã«å±¤ã§ï¼ã·ã¹ãã ã¨ãã¦è¨±å¯ãã¦ããå¤ãï¼ãæ¤è¨¼ããä»çµã¿ã§ãã ããªãã¼ã·ã§ã³ã®åºæ¬çãªæµããããªãã¼ã·ã§ã³ã®å®ç¾©ã¨ããªãã¼ã·ã§ã³ã®ãã¹ãæ¹æ³ãããªãã¼ã·ã§ã³ã®ã¹ããããªã©ã®ããªãã¼ã·ã§ã³ã®åºæ¬ã«ã¤ãã¦ã¾ã¨ãã¾ããã åä½ç¢ºèª Rails 4.1 ActiveRecord 4.1 shoulda-matchers 2.6.3 ç®æ¬¡ 1. Railsã§ã®ããªãã¼ã·ã§ã³ã®æµã 2. ããªãã¼ã·ã§ã³ãå®ç¾©ãã 2.1. åå¨ãã§ãã¯(presence) 2.2. ä¸ææ§ï¼ã¦ãã¼ã¯å¶ç´ï¼ã®ãã§ãã¯(uniqueness) 2.3. é·ãã®ãã§ãã¯(length) 2.4. ãã©ã¼ãããã®ãã§ãã¯(format) 2.5. æ°å¤ã®å¤ãã§ãã¯(nu
{{#tags}}- {{label}}
{{/tags}}