Created
November 1, 2011 17:39
-
-
Save deepj/1331295 to your computer and use it in GitHub Desktop.
workshop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>New project</h2> | |
<% if @project.errors.any? %> | |
<ul> | |
<% @project.errors.full_messages.each do |message| %> | |
<li><%= message %></li> | |
<% end %> | |
</ul> | |
<% end %> | |
<%= form_for @project do |form| %> | |
<%= form.label :title %><br/> | |
<div class="input"> | |
<%= form.text_field :title %> | |
</div> | |
<%= form.label :description %><br/> | |
<div class="input"> | |
<%= form.text_area :description %> | |
</div> | |
<%= form.submit 'Create project', class: 'btn primary' %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment