installing rails and cap setup