made rails and simple form dependency more flexible.