質問編集履歴
1
ファイル名の編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
初歩的なところではあると思いますが、お力を貸して頂けると嬉しいです。
|
8
8
|
|
9
9
|
### 該当するソースコード
|
10
|
-
```r
|
10
|
+
```_tweet.html.erb
|
11
11
|
<div class="content_post" style="background-image: url(<%= tweet.image %>);">
|
12
12
|
<div class="more">
|
13
13
|
<span><%= image_tag 'arrow_top.png' %></span>
|
@@ -35,7 +35,7 @@
|
|
35
35
|
```
|
36
36
|
|
37
37
|
|
38
|
-
```r
|
38
|
+
```tweets_controller
|
39
39
|
class TweetsController < ApplicationController
|
40
40
|
before_action :set_tweet, only: [:edit, :show]
|
41
41
|
before_action :move_to_index, except: [:index, :show]
|
@@ -86,8 +86,8 @@
|
|
86
86
|
end
|
87
87
|
```
|
88
88
|
|
89
|
-
```ruby
|
90
|
-
application.js
|
89
|
+
```application.js
|
90
|
+
|
91
91
|
// This file is automatically compiled by Webpack, along with any other files
|
92
92
|
// present in this directory. You're encouraged to place your actual application logic in
|
93
93
|
// a relevant structure within app/javascript and only use these pack files to reference
|
@@ -108,8 +108,7 @@
|
|
108
108
|
|
109
109
|
```
|
110
110
|
|
111
|
-
```ruby
|
112
|
-
package.json
|
111
|
+
```package.json
|
113
112
|
{
|
114
113
|
"dependencies": {
|
115
114
|
"@rails/webpacker": "4.3.0"
|
@@ -121,8 +120,7 @@
|
|
121
120
|
|
122
121
|
```
|
123
122
|
|
124
|
-
```ruby
|
125
|
-
postcss.config.js
|
123
|
+
```postcss.config.js
|
126
124
|
module.exports = {
|
127
125
|
plugins: [
|
128
126
|
require('postcss-import'),
|
@@ -137,6 +135,68 @@
|
|
137
135
|
}
|
138
136
|
```
|
139
137
|
|
138
|
+
```gemfile
|
139
|
+
source 'https://rubygems.org'
|
140
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
141
|
+
|
142
|
+
ruby '2.6.5'
|
143
|
+
|
144
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
145
|
+
gem 'rails', '~> 6.0.0'
|
146
|
+
# Use mysql as the database for Active Record
|
147
|
+
gem 'mysql2', '0.5.3'
|
148
|
+
# Use Puma as the app server
|
149
|
+
gem 'puma', '~> 3.11'
|
150
|
+
# Use SCSS for stylesheets
|
151
|
+
gem 'sass-rails', '~> 5'
|
152
|
+
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
|
153
|
+
gem 'webpacker', '~> 4.0'
|
154
|
+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
155
|
+
gem 'turbolinks', '~> 5'
|
156
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
157
|
+
gem 'jbuilder', '~> 2.7'
|
158
|
+
# Use Redis adapter to run Action Cable in production
|
159
|
+
# gem 'redis', '~> 4.0'
|
160
|
+
# Use Active Model has_secure_password
|
161
|
+
# gem 'bcrypt', '~> 3.1.7'
|
162
|
+
|
163
|
+
# Use Active Storage variant
|
164
|
+
# gem 'image_processing', '~> 1.2'
|
165
|
+
|
166
|
+
# Reduces boot times through caching; required in config/boot.rb
|
167
|
+
gem 'bootsnap', '>= 1.4.2', require: false
|
168
|
+
|
169
|
+
group :development, :test do
|
170
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
171
|
+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
172
|
+
end
|
173
|
+
|
174
|
+
group :development do
|
175
|
+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
|
176
|
+
gem 'web-console', '>= 3.3.0'
|
177
|
+
gem 'listen', '>= 3.0.5', '< 3.2'
|
178
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
179
|
+
gem 'spring'
|
180
|
+
gem 'spring-watcher-listen', '~> 2.0.0'
|
181
|
+
end
|
182
|
+
|
183
|
+
group :test do
|
184
|
+
# Adds support for Capybara system testing and selenium driver
|
185
|
+
gem 'capybara', '>= 2.15'
|
186
|
+
gem 'selenium-webdriver'
|
187
|
+
# Easy installation and use of web drivers to run system tests with browsers
|
188
|
+
gem 'webdrivers'
|
189
|
+
end
|
190
|
+
|
191
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
192
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
193
|
+
gem 'pry-rails'
|
194
|
+
gem 'net-http'
|
195
|
+
gem 'devise'
|
196
|
+
gem 'jquery-rails'
|
197
|
+
```
|
198
|
+
|
199
|
+
|
140
200
|
### 削除ボタンを押した後のターミナル画像
|
141
201
|
https://gyazo.com/24b48c7918bdb978bdb53d88d1a65d7a
|
142
202
|
|