Skip to content

Commit 4960e11

Browse files
committed
Removed articles and comments from base app
1 parent ef9c500 commit 4960e11

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+278
-632
lines changed

app/controllers/articles_controller.rb

Lines changed: 0 additions & 69 deletions
This file was deleted.

app/controllers/comments_controller.rb

Lines changed: 0 additions & 14 deletions
This file was deleted.

app/helpers/articles_helper.rb

Lines changed: 0 additions & 2 deletions
This file was deleted.

app/helpers/comments_helper.rb

Lines changed: 0 additions & 2 deletions
This file was deleted.

app/images/.keep

Whitespace-only changes.

app/models/article.rb

Lines changed: 0 additions & 20 deletions
This file was deleted.

app/models/comment.rb

Lines changed: 0 additions & 18 deletions
This file was deleted.

app/views/articles/_article.html.erb

Lines changed: 0 additions & 29 deletions
This file was deleted.

app/views/articles/_article.json.jbuilder

Lines changed: 0 additions & 2 deletions
This file was deleted.

app/views/articles/_article_card.html.erb

Lines changed: 0 additions & 18 deletions
This file was deleted.

app/views/articles/_comments.html.erb

Lines changed: 0 additions & 6 deletions
This file was deleted.

app/views/articles/_form.html.erb

Lines changed: 0 additions & 29 deletions
This file was deleted.

app/views/articles/edit.html.erb

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/views/articles/index.html.erb

Lines changed: 0 additions & 17 deletions
This file was deleted.

app/views/articles/index.json.jbuilder

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/views/articles/new.html.erb

Lines changed: 0 additions & 9 deletions
This file was deleted.

app/views/articles/show.html.erb

Lines changed: 0 additions & 6 deletions
This file was deleted.

app/views/articles/show.json.jbuilder

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/views/comments/_comment.html.erb

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/views/comments/_new.html.erb

Lines changed: 0 additions & 7 deletions
This file was deleted.

app/views/layouts/application.html.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
<div class="collapse navbar-collapse" id="navbarTogglerDemo02">
2424
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
2525
<li class="nav-item">
26-
<%= link_to 'Articles', articles_path, class: 'nav-link active' %>
27-
<!a class="" aria-current="page" href="#">
26+
<a class="nav-link active" aria-current="page" href="#">Things </a>
2827
</li>
2928
<li class="nav-item">
3029
<a class="nav-link active" href="#">Courses</a>

bin/bundle

100644100755
File mode changed.

bin/docker-entrypoint.sh

100644100755
File mode changed.

bin/importmap

100644100755
File mode changed.

bin/rails

100644100755
File mode changed.

bin/rake

100644100755
File mode changed.

bin/render-build.sh

100644100755
File mode changed.

bin/rspec

100644100755
File mode changed.

bin/rubocop

100644100755
File mode changed.

bin/setup

100644100755
File mode changed.

config/routes.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,5 @@
33
Rails.application.routes.draw do
44
get 'welcome/index'
55

6-
resources :articles do
7-
resources :comments
8-
end
9-
106
root 'welcome#index'
117
end

db/migrate/20231004111935_create_articles.rb

Lines changed: 0 additions & 10 deletions
This file was deleted.

db/migrate/20231004111942_create_comments.rb

Lines changed: 0 additions & 12 deletions
This file was deleted.

db/schema.rb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,6 @@
5252
t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
5353
end
5454

55-
create_table "articles", force: :cascade do |t|
56-
t.string "title"
57-
t.text "content"
58-
t.datetime "created_at", null: false
59-
t.datetime "updated_at", null: false
60-
end
61-
62-
create_table "comments", force: :cascade do |t|
63-
t.bigint "article_id"
64-
t.text "content"
65-
t.datetime "created_at", null: false
66-
t.datetime "updated_at", null: false
67-
t.index ["article_id"], name: "index_comments_on_article_id"
68-
end
69-
7055
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
7156
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
7257
end

db/seeds.rb

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +0,0 @@
1-
# frozen_string_literal: true
2-
3-
10.times do
4-
article = Article.create!(
5-
title: Faker::DcComics.title,
6-
content: Faker::Lorem.paragraphs(
7-
number: rand(5..50),
8-
supplemental: true,
9-
).join("\n")
10-
)
11-
12-
rand(1..10).times do
13-
article.comments.create!(
14-
content: Faker::Lorem.paragraph(
15-
sentence_count: rand(2..10),
16-
supplemental: true,
17-
random_sentences_to_add: rand(5..20)
18-
)
19-
)
20-
end
21-
end

0 commit comments

Comments
 (0)