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

Editing 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 'Update' %> +

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