Skip to content

Instantly share code, notes, and snippets.

@kevinvangelder
Created July 10, 2013 23:43
Show Gist options
  • Save kevinvangelder/5971259 to your computer and use it in GitHub Desktop.
Save kevinvangelder/5971259 to your computer and use it in GitHub Desktop.
form.rb
= simple_form_for @important_date do |f|
= f.input :name
= f.input :date, as: :ui_date_picker, data: { date_format: "mm/dd/yy" }, value: @important_date.date.strftime("%m/%d/%Y")
= f.input :recurring
.form-actions
= link_to "Cancel", important_dates_url, class: "btn btn-inverse"
- if @important_date.id
= link_to "Delete", important_date_url(@important_date), method: :delete, class: "btn btn-danger"
= f.submit "Save", class: "btn btn-success"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment