質問編集履歴
3
application.rb追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,7 +8,11 @@
|
|
8
8
|
|
9
9
|
→取得出来ている
|
10
10
|
|
11
|
-
|
11
|
+
・application.rbのタイムゾーンを```config.time_zone = 'Tokyo'```
|
12
|
+
|
13
|
+
に変えてサーバー落として再起動してみた。
|
14
|
+
|
15
|
+
→変化なし
|
12
16
|
|
13
17
|
なのでviewに受け渡す時になんかおかしいようです。
|
14
18
|
|
@@ -180,6 +184,46 @@
|
|
180
184
|
|
181
185
|
```
|
182
186
|
|
187
|
+
application.rb
|
188
|
+
|
189
|
+
```ruby
|
190
|
+
|
191
|
+
require_relative 'boot'
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
require 'rails/all'
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
# Require the gems listed in Gemfile, including any gems
|
200
|
+
|
201
|
+
# you've limited to :test, :development, or :production.
|
202
|
+
|
203
|
+
Bundler.require(*Rails.groups)
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
module Progress13
|
208
|
+
|
209
|
+
class Application < Rails::Application
|
210
|
+
|
211
|
+
# Settings in config/environments/* take precedence over those specified here.
|
212
|
+
|
213
|
+
# Application configuration should go into files in config/initializers
|
214
|
+
|
215
|
+
# -- all .rb files in that directory are automatically loaded.
|
216
|
+
|
217
|
+
config.time_zone = 'Tokyo'
|
218
|
+
|
219
|
+
end
|
220
|
+
|
221
|
+
end
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
```
|
226
|
+
|
183
227
|
![イメージ説明](e0ef752f0b24f6d057bdab4213935be2.png)
|
184
228
|
|
185
229
|
本来ならば10月に更新するはずなんですが。。。
|
2
写真追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -180,4 +180,8 @@
|
|
180
180
|
|
181
181
|
```
|
182
182
|
|
183
|
+
![イメージ説明](e0ef752f0b24f6d057bdab4213935be2.png)
|
184
|
+
|
185
|
+
本来ならば10月に更新するはずなんですが。。。
|
186
|
+
|
183
187
|
cloud9使用
|
1
rootの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -130,4 +130,54 @@
|
|
130
130
|
|
131
131
|
```
|
132
132
|
|
133
|
+
root
|
134
|
+
|
135
|
+
```ruby
|
136
|
+
|
137
|
+
Rails.application.routes.draw do
|
138
|
+
|
139
|
+
devise_for :users
|
140
|
+
|
141
|
+
root 'comments#index'
|
142
|
+
|
143
|
+
get 'comments/index'
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
root to:"users#index"
|
150
|
+
|
151
|
+
get "/employees_index", to:"employees#index"
|
152
|
+
|
153
|
+
get "/employees_new", to:"employees#new"
|
154
|
+
|
155
|
+
post "/employees_create", to:"employees#create"
|
156
|
+
|
157
|
+
delete "/employees/:id", to:"employees#destroy"
|
158
|
+
|
159
|
+
get "employees/:id/edit", to:"employees#edit"
|
160
|
+
|
161
|
+
patch "/employees/:id", to:"employees#update"
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
get '/timecard', to: 'time_cards#show'
|
172
|
+
|
173
|
+
post '/timecard/create', to: 'time_cards#create'
|
174
|
+
|
175
|
+
get '/monthly', to: 'time_cards#index'
|
176
|
+
|
177
|
+
end
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
```
|
182
|
+
|
133
183
|
cloud9使用
|