What’s the difference between save(false) and save(:validate => false)? From what I can tell, the functionality is the same. The version that uses :validate is in the api which leads me to believe save(false) is a deprecated version? This came up for me when following this: https://github.com/plataformatec/devise/wiki/How-To:-Create-a-guest-user. The guide has save(false) in there but I was getting errors when using it. I switched it to the :validate version and that worked fine.
What’s the difference between save(false) and save(:validate => false) ? From what I can
Share
In Rails versions before than 3,
savewas a method inActiveRecord::Baseand you could passfalseto it in order to bypass validations.In Rails 3,
savewas moved toActiveRecord::Persistanceand since then you should pass:validate => falsetosavein order to bypass validations.