From 5223bad17c9bb103fa6f558e936cc1303ecee4bf Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Sat, 14 Jun 2014 16:18:22 +0200 Subject: docs, remove getting started guide sample application. [ci skip] This application always gets out of sync and doesn't add much value. Closes #15721 /cc @rafaelfranca --- .../app/views/articles/_form.html.erb | 27 ---------------------- .../app/views/articles/edit.html.erb | 5 ---- .../app/views/articles/index.html.erb | 21 ----------------- .../app/views/articles/new.html.erb | 5 ---- .../app/views/articles/show.html.erb | 18 --------------- 5 files changed, 76 deletions(-) delete mode 100644 guides/code/getting_started/app/views/articles/_form.html.erb delete mode 100644 guides/code/getting_started/app/views/articles/edit.html.erb delete mode 100644 guides/code/getting_started/app/views/articles/index.html.erb delete mode 100644 guides/code/getting_started/app/views/articles/new.html.erb delete mode 100644 guides/code/getting_started/app/views/articles/show.html.erb (limited to 'guides/code/getting_started/app/views/articles') diff --git a/guides/code/getting_started/app/views/articles/_form.html.erb b/guides/code/getting_started/app/views/articles/_form.html.erb deleted file mode 100644 index 87e3353ed2..0000000000 --- a/guides/code/getting_started/app/views/articles/_form.html.erb +++ /dev/null @@ -1,27 +0,0 @@ -<%= form_for @article do |f| %> - <% if @article.errors.any? %> -
-

<%= pluralize(@article.errors.count, "error") %> prohibited - this article from being saved:

- -
- <% end %> -

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

- -

- <%= f.label :text %>
- <%= f.text_area :text %> -

- -

- <%= f.submit %> -

-<% end %> - diff --git a/guides/code/getting_started/app/views/articles/edit.html.erb b/guides/code/getting_started/app/views/articles/edit.html.erb deleted file mode 100644 index 14236e2a98..0000000000 --- a/guides/code/getting_started/app/views/articles/edit.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -

Edit article

- -<%= render 'form' %> - -<%= link_to 'Back', action: :index %> diff --git a/guides/code/getting_started/app/views/articles/index.html.erb b/guides/code/getting_started/app/views/articles/index.html.erb deleted file mode 100644 index 80e9c8c60c..0000000000 --- a/guides/code/getting_started/app/views/articles/index.html.erb +++ /dev/null @@ -1,21 +0,0 @@ -

Listing Articles

- - - - - - - - - -<% @articles.each do |article| %> - - - - - - - -<% end %> -
TitleText
<%= article.title %><%= article.text %><%= link_to 'Show', action: :show, id: article.id %><%= link_to 'Edit', action: :edit, id: article.id %><%= link_to 'Destroy', { action: :destroy, id: article.id }, - method: :delete, data: { confirm: 'Are you sure?' } %>
diff --git a/guides/code/getting_started/app/views/articles/new.html.erb b/guides/code/getting_started/app/views/articles/new.html.erb deleted file mode 100644 index 652b1c9c0b..0000000000 --- a/guides/code/getting_started/app/views/articles/new.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -

New article

- -<%= render 'form' %> - -<%= link_to 'Back', action: :index %> diff --git a/guides/code/getting_started/app/views/articles/show.html.erb b/guides/code/getting_started/app/views/articles/show.html.erb deleted file mode 100644 index 6959c80bdb..0000000000 --- a/guides/code/getting_started/app/views/articles/show.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -

- Title: - <%= @article.title %> -

- -

- Text: - <%= @article.text %> -

- -

Comments

-<%= render @article.comments %> - -

Add a comment:

-<%= render "comments/form" %> - -<%= link_to 'Edit Article', edit_article_path(@article) %> | -<%= link_to 'Back to Articles', articles_path %> -- cgit v1.2.3