working on Rails, attempting to learn best practices