howto from ruby to rails