.row .col-sm-6.mt30.ml5 .col-sm-9.no-padding = simple_form_for @book do |f| = f.input :title, label: 'Title', validate: true = f.input :authors, label: 'Authors', validate: true = f.input :edition, label: 'Edition', validate: true = f.input :professor, label: 'Professor', validate: true = f.input :cost, label: 'Cost', validate: true .form-group label.control-label | Condition = f.select :condition, options_for_select(['Fair','Good','Mint']) .form-group = f.fields_for :text_book_image do |i| = i.file_field :image .form-group.text-center.mt25 =f.submit 'Update', class: 'btn-green-book mb30 w150'