complete rails training
Refactoring