質問編集履歴
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,11 +16,29 @@
|
|
16
16
|
|
17
17
|
<% @dates.each do |day| %>
|
18
18
|
|
19
|
+
<%
|
20
|
+
|
21
|
+
css_class =
|
22
|
+
|
23
|
+
case day.worked_on.wday
|
24
|
+
|
25
|
+
when '土' then
|
26
|
+
|
27
|
+
'text-primary'
|
28
|
+
|
29
|
+
when '日' then
|
30
|
+
|
31
|
+
'text-danger'
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
%>
|
36
|
+
|
19
37
|
<tr>
|
20
38
|
|
21
39
|
<td><%= day.worked_on.to_s(:date) %></td>
|
22
40
|
|
23
|
-
<td><%= %w{日 月 火 水 木 金 土}[day.worked_on.wday] %></td>
|
41
|
+
<td class="<%= css_class %>"><%= %w{日 月 火 水 木 金 土}[day.worked_on.wday] %></td>
|
24
42
|
|
25
43
|
<td></td>
|
26
44
|
|
@@ -44,6 +62,98 @@
|
|
44
62
|
|
45
63
|
```
|
46
64
|
|
65
|
+
<gemfile>
|
66
|
+
|
67
|
+
```ここに言語を入力
|
68
|
+
|
69
|
+
source 'https://rubygems.org'
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
gem 'ransack'
|
74
|
+
|
75
|
+
gem 'rails-i18n'
|
76
|
+
|
77
|
+
gem 'rails', '5.1.6'
|
78
|
+
|
79
|
+
gem 'bcrypt', '3.1.12'
|
80
|
+
|
81
|
+
gem 'faker', '1.7.3'
|
82
|
+
|
83
|
+
gem 'will_paginate', '3.1.6'
|
84
|
+
|
85
|
+
gem 'bootstrap-will_paginate', '1.0.0'
|
86
|
+
|
87
|
+
gem 'bootstrap-sass', '3.3.7'
|
88
|
+
|
89
|
+
gem 'puma', '3.9.1'
|
90
|
+
|
91
|
+
gem 'sass-rails', '5.0.6'
|
92
|
+
|
93
|
+
gem 'uglifier', '3.2.0'
|
94
|
+
|
95
|
+
gem 'coffee-rails', '4.2.2'
|
96
|
+
|
97
|
+
gem 'jquery-rails', '4.3.1'
|
98
|
+
|
99
|
+
gem 'turbolinks', '5.0.1'
|
100
|
+
|
101
|
+
gem 'jbuilder', '2.7.0'
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
group :development, :test do
|
106
|
+
|
107
|
+
gem 'sqlite3', '1.3.13'
|
108
|
+
|
109
|
+
gem 'byebug', '9.0.6', platform: :mri
|
110
|
+
|
111
|
+
end
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
group :development do
|
116
|
+
|
117
|
+
gem 'web-console', '3.5.1'
|
118
|
+
|
119
|
+
gem 'listen', '3.1.5'
|
120
|
+
|
121
|
+
gem 'spring', '2.0.2'
|
122
|
+
|
123
|
+
gem 'spring-watcher-listen', '2.0.1'
|
124
|
+
|
125
|
+
end
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
group :test do
|
130
|
+
|
131
|
+
gem 'rails-controller-testing', '1.0.2'
|
132
|
+
|
133
|
+
gem 'minitest', '5.10.3'
|
134
|
+
|
135
|
+
gem 'minitest-reporters', '1.1.14'
|
136
|
+
|
137
|
+
gem 'guard', '2.13.0'
|
138
|
+
|
139
|
+
gem 'guard-minitest', '2.4.4'
|
140
|
+
|
141
|
+
end
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
group :production do
|
146
|
+
|
147
|
+
gem 'pg', '0.20.0'
|
148
|
+
|
149
|
+
end
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
154
|
+
|
155
|
+
```
|
156
|
+
|
47
157
|
<現状>
|
48
158
|
|
49
159
|
![イメージ説明](f3aa5375edeb3c6f0bb63cb74b51b250.png)
|