diff --git a/app/views/contests/index.html.erb b/app/views/contests/index.html.erb --- a/app/views/contests/index.html.erb +++ b/app/views/contests/index.html.erb @@ -1,19 +1,24 @@ +<% content_for :head do %> +<%= javascript_include_tag :defaults %> +<% end %> +
Title | -Enabled | +Enabled | ||||
---|---|---|---|---|---|---|
<%=h contest.title %> | -<%=h contest.enabled %> | +<%= in_place_editor_field :contest, :title, {}, :rows => 1 %> | +<%= in_place_editor_field :contest, :enabled, {}, :rows => 1 %> | <%= link_to 'Show', contest %> | <%= link_to 'Edit', edit_contest_path(contest) %> | <%= link_to 'Destroy', contest, :confirm => 'Are you sure?', :method => :delete %> |