first steps in rails, semi-advanced in php