This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sur tous les attributs | |
person.changes # => { "name" => ["bill", "bob"] } | |
# vérifier s'il y a eu un changement sur l'instance | |
person.changed? # => false | |
# récupérer la valeur changée | |
person.name_was # => "Uncle Bob" | |
Et plein d'autres => http://api.rubyonrails.org/classes/ActiveModel/Dirty.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### with no setup ### | |
# template language to shorten html | |
gem 'slim', '~> 3.0', '>= 3.0.7' | |
# manage translation | |
gem 'i18n', '~> 0.7.0' | |
# in group :development for better error pages | |
gem 'better_errors', '~> 2.1', '>= 2.1.1' |