diff --git a/app/views/events/_form.html.erb b/app/views/events/_form.html.erb
deleted file mode 100644
index 4c7d538..0000000
--- a/app/views/events/_form.html.erb
+++ /dev/null
@@ -1,17 +0,0 @@
-<%= form_for(@event) do |f| %>
- <% if @event.errors.any? %>
-
-
<%= pluralize(@event.errors.count, "error") %> prohibited this event from being saved:
-
-
- <% @event.errors.full_messages.each do |msg| %>
- - <%= msg %>
- <% end %>
-
-
- <% end %>
-
-
- <%= f.submit %>
-
-<% end %>
diff --git a/app/views/events/edit.html.erb b/app/views/events/edit.html.erb
deleted file mode 100644
index d7d4525..0000000
--- a/app/views/events/edit.html.erb
+++ /dev/null
@@ -1,6 +0,0 @@
-Editing event
-
-<%= render 'form' %>
-
-<%= link_to 'Show', @event %> |
-<%= link_to 'Back', events_path %>
diff --git a/app/views/events/new.html.erb b/app/views/events/new.html.erb
deleted file mode 100644
index 6119978..0000000
--- a/app/views/events/new.html.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-New event
-
-<%= render 'form' %>
-
-<%= link_to 'Back', events_path %>
diff --git a/config/routes.rb b/config/routes.rb
index 53469d1..8b1e155 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,5 +1,5 @@
Refreshsea::Application.routes.draw do
- resources :events
+ resources :events, only: [:index, :show]
devise_for :admin_users, ActiveAdmin::Devise.config
ActiveAdmin.routes(self)
@@ -48,7 +48,7 @@
# get 'recent', on: :collection
# end
# end
-
+
# Example resource route with concerns:
# concern :toggleable do
# post 'toggle'