Set up Rails, fixed errors