Using rails methods instead of our own