please move this into a helper method, look this https://github.com/fbrusatti/g/blob/master/app/helpers/appointments_helper.rb#L6-L8   https://github.com/fbrusatti/g/blob/master/app/views/appointments/_form.html.haml#L10 :tada: