diff --git a/app/views/contests/new.html.erb b/app/views/contests/new.html.erb new file mode 100644 --- /dev/null +++ b/app/views/contests/new.html.erb @@ -0,0 +1,19 @@ +

New contest

+ +<% form_for(@contest) do |f| %> + <%= f.error_messages %> + +

+ <%= f.label :title %>
+ <%= f.text_field :title %> +

+

+ <%= f.label :enabled %>
+ <%= f.check_box :enabled %> +

+

+ <%= f.submit 'Create' %> +

+<% end %> + +<%= link_to 'Back', contests_path %> \ No newline at end of file