An approach to form objects in Rails