diff options
Diffstat (limited to 'app/views/servers')
-rw-r--r-- | app/views/servers/_form.html.erb | 17 | ||||
-rw-r--r-- | app/views/servers/edit.html.erb | 6 | ||||
-rw-r--r-- | app/views/servers/index.html.erb | 25 | ||||
-rw-r--r-- | app/views/servers/index.json.jbuilder | 4 | ||||
-rw-r--r-- | app/views/servers/new.html.erb | 5 | ||||
-rw-r--r-- | app/views/servers/show.html.erb | 4 | ||||
-rw-r--r-- | app/views/servers/show.json.jbuilder | 1 |
7 files changed, 0 insertions, 62 deletions
diff --git a/app/views/servers/_form.html.erb b/app/views/servers/_form.html.erb deleted file mode 100644 index b08654b..0000000 --- a/app/views/servers/_form.html.erb +++ /dev/null @@ -1,17 +0,0 @@ -<%= form_for(@server) do |f| %> - <% if @server.errors.any? %> - <div id="error_explanation"> - <h2><%= pluralize(@server.errors.count, "error") %> prohibited this server from being saved:</h2> - - <ul> - <% @server.errors.full_messages.each do |msg| %> - <li><%= msg %></li> - <% end %> - </ul> - </div> - <% end %> - - <div class="actions"> - <%= f.submit %> - </div> -<% end %> diff --git a/app/views/servers/edit.html.erb b/app/views/servers/edit.html.erb deleted file mode 100644 index a92cdb5..0000000 --- a/app/views/servers/edit.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -<h1>Editing server</h1> - -<%= render 'form' %> - -<%= link_to 'Show', @server %> | -<%= link_to 'Back', servers_path %> diff --git a/app/views/servers/index.html.erb b/app/views/servers/index.html.erb deleted file mode 100644 index f45d393..0000000 --- a/app/views/servers/index.html.erb +++ /dev/null @@ -1,25 +0,0 @@ -<h1>Listing servers</h1> - -<table> - <thead> - <tr> - <th></th> - <th></th> - <th></th> - </tr> - </thead> - - <tbody> - <% @servers.each do |server| %> - <tr> - <td><%= link_to 'Show', server %></td> - <td><%= link_to 'Edit', edit_server_path(server) %></td> - <td><%= link_to 'Destroy', server, method: :delete, data: { confirm: 'Are you sure?' } %></td> - </tr> - <% end %> - </tbody> -</table> - -<br> - -<%= link_to 'New Server', new_server_path %> diff --git a/app/views/servers/index.json.jbuilder b/app/views/servers/index.json.jbuilder deleted file mode 100644 index 2776abc..0000000 --- a/app/views/servers/index.json.jbuilder +++ /dev/null @@ -1,4 +0,0 @@ -json.array!(@servers) do |server| - json.extract! server, :id - json.url server_url(server, format: :json) -end diff --git a/app/views/servers/new.html.erb b/app/views/servers/new.html.erb deleted file mode 100644 index 0422009..0000000 --- a/app/views/servers/new.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<h1>New server</h1> - -<%= render 'form' %> - -<%= link_to 'Back', servers_path %> diff --git a/app/views/servers/show.html.erb b/app/views/servers/show.html.erb deleted file mode 100644 index 039cd8f..0000000 --- a/app/views/servers/show.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -<p id="notice"><%= notice %></p> - -<%= link_to 'Edit', edit_server_path(@server) %> | -<%= link_to 'Back', servers_path %> diff --git a/app/views/servers/show.json.jbuilder b/app/views/servers/show.json.jbuilder deleted file mode 100644 index 972b1c0..0000000 --- a/app/views/servers/show.json.jbuilder +++ /dev/null @@ -1 +0,0 @@ -json.extract! @server, :id, :created_at, :updated_at |