回答編集履歴

1

拡張子の指定方法をまちがえてた

2015/09/25 04:46

投稿

DaisukeM
DaisukeM

スコア15

test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  get '/:ita_key/subject', controller: 'subjects', action: :index, default: :txt
10
10
 
11
- get '/:ita_key/:id', controller: 'dat', action: :index, format: :dat
11
+ get '/:ita_key/:id', controller: 'dat', action: :index, default: :dat
12
12
 
13
13
  ```
14
14
 
@@ -22,6 +22,6 @@
22
22
 
23
23
  GET /:ita_key/subject(.:format) subjects#index {:default=>:txt}
24
24
 
25
- GET /:ita_key/:id(.:format) dat#index
25
+ GET /:ita_key/:id(.:format) dat#index {:default=>:dat}
26
26
 
27
27
  ```