test "save" do address = Address.new(valid_address) assert address.save end ãããªç°¡åãªãã¹ããéããªãã¨æã£ããããActiveRecord::RecordNotSavedããçºçãã¦ããAddressã¢ãã«ã«ã¯ãbefore_saveã§ä»¥ä¸ã®ããã«è¨è¿°ãã¦ããã before_save { self.is_sender = false } ã©ããããã®falseãåå ããããæå¾ã«return trueãã¦ãã£ã¦ãã®å ´ããã®ãã ã before_save { self.is_sender = false true } åèï¼Sketchpad â Dan Sketcherâs personal blog » Blog Archive » ActiveRecord::RecordNotSaved â before
{{#tags}}- {{label}}
{{/tags}}