Skip to content

Instantly share code, notes, and snippets.

@joelbrewer
Created September 12, 2014 03:39
Show Gist options
  • Select an option

  • Save joelbrewer/6bbc48473c77ed718165 to your computer and use it in GitHub Desktop.

Select an option

Save joelbrewer/6bbc48473c77ed718165 to your computer and use it in GitHub Desktop.
%section.form
= form_for @project do |f|
.title
= f.label :title
= f.text_field :title
.date
= f.label "Start Date"
.month.inline= f.select(:month, ('01'..'12').to_a)
.day.inline= f.select(:day, ('01'..'31').to_a)
.year.inline= f.select(:year, ((Time.now.year)..Time.now.year + 5).to_a)
.description
= f.label :description
= f.text_area :description, rows: 10
= f.submit "Create Project"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment