followed rails tutorial 3.3.3 Embedded Ruby