Skip to content

Instantly share code, notes, and snippets.

@joelbrewer
Last active August 29, 2015 13:55
Show Gist options
  • Save joelbrewer/8713762 to your computer and use it in GitHub Desktop.
Save joelbrewer/8713762 to your computer and use it in GitHub Desktop.
new project form
%h1 New Project
= form_for @project do |f|
= render 'shared/error_messages', object: f.object
%div
= f.label :title
= f.text_field :title
%div
= f.label :contact_name
= f.text_field :contact_name
%div
= f.label :email_address
= f.text_field :email_address
%div
= f.label :phone_number
= f.text_field :phone_number
%div
= f.label :description
= f.text_field :description
%div
= f.label :category
= collection_select(:project, :category, ProjectCategory.all, :key_name, :pluralized_name, prompt: true)
%div
= f.label :sub_category
= collection_select(:project, :sub_category, ProjectSubCategory.all, :key_name, :description, prompt: true)
= f.submit "Create Project"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment