3. Model ã«é¢ããå¤æ´ç¹ 2013/10/03ãã·ãã¸ã¼ãã¼ã±ãã£ã³ã°(æ ª)ãé´æ¨ å [Rails 4.0] 第3ç« Model ã«é¢ããå¤æ´ç¹ 3.1. attr_accessible ãã StrongParameters 㸠3.2. éæ¨å¥¨ã¨ãªã£ãåçãã¡ã¤ã³ãã¡ã½ãã 3.3. scope ã«ã¯ Proc ãªãã¸ã§ã¯ãã®æå®ãå¿ é 3.4. ãã©ã³ã¶ã¯ã·ã§ã³ã®éé¢ã¬ãã«ã®æå® 3.5. ActiveModel::Model ã¢ã¸ã¥ã¼ã« 3.6. ã¯ã¨ãª API ã®å¤æ´ç¹ 3.6.1. all ãé åã§ã¯ãªã Relation ãè¿ã 3.6.2. pluck ã¯è¤æ°ã«ã©ã ãæå®å¯è½ 3.6.3. update_attributes 㯠update ã®ã¨ã¤ãªã¢ã¹ 3.6.4. update_column ã®ä»£ããã« update_columns 3.6.5. none
{{#tags}}- {{label}}
{{/tags}}