Note: I'm currently taking a break from this course to focus on my studies so I can finally graduate
This file contains hidden or 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
| user1: | |
| email: [email protected] | |
| encrypted_password: <%= User.new.send(:password_digest, "user123") %> | |
| confirmed_at: <%= Time.now %> |
This file contains hidden or 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
| class String | |
| def camel_case | |
| parts = self.dup.split | |
| parts.each { |p| p.capitalize! } | |
| parts[0].downcase! | |
| parts.join | |
| end | |
| def camel_case! | |
| parts = self.dup.split |