a first attempt to rails