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 --------------- .../app/views/comments/_comment.html.erb | 15 ------------ .../app/views/comments/_form.html.erb | 13 ----------- .../app/views/layouts/application.html.erb | 14 ----------- .../app/views/welcome/index.html.erb | 4 ---- 9 files changed, 122 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 delete mode 100644 guides/code/getting_started/app/views/comments/_comment.html.erb delete mode 100644 guides/code/getting_started/app/views/comments/_form.html.erb delete mode 100644 guides/code/getting_started/app/views/layouts/application.html.erb delete mode 100644 guides/code/getting_started/app/views/welcome/index.html.erb (limited to 'guides/code/getting_started/app/views') 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 %> diff --git a/guides/code/getting_started/app/views/comments/_comment.html.erb b/guides/code/getting_started/app/views/comments/_comment.html.erb deleted file mode 100644 index f7cbfaebfa..0000000000 --- a/guides/code/getting_started/app/views/comments/_comment.html.erb +++ /dev/null @@ -1,15 +0,0 @@ -

- Commenter: - <%= comment.commenter %> -

- -

- Comment: - <%= comment.body %> -

- -

- <%= link_to 'Destroy Comment', [comment.article, comment], - method: :delete, - data: { confirm: 'Are you sure?' } %> -

diff --git a/guides/code/getting_started/app/views/comments/_form.html.erb b/guides/code/getting_started/app/views/comments/_form.html.erb deleted file mode 100644 index 5850c41a17..0000000000 --- a/guides/code/getting_started/app/views/comments/_form.html.erb +++ /dev/null @@ -1,13 +0,0 @@ -<%= form_for([@article, @article.comments.build]) do |f| %> -

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

-

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

-

- <%= f.submit %> -

-<% end %> diff --git a/guides/code/getting_started/app/views/layouts/application.html.erb b/guides/code/getting_started/app/views/layouts/application.html.erb deleted file mode 100644 index d0ba8415e6..0000000000 --- a/guides/code/getting_started/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Blog - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/guides/code/getting_started/app/views/welcome/index.html.erb b/guides/code/getting_started/app/views/welcome/index.html.erb deleted file mode 100644 index 1cabd0d217..0000000000 --- a/guides/code/getting_started/app/views/welcome/index.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -

Hello, Rails!

- -<%= link_to "My Blog", controller: "articles" %> -<%= link_to "New Article", new_article_path %> -- cgit v1.2.3