回答編集履歴

2

書式の改善

2017/09/11 04:47

投稿

seen
seen

スコア49

test CHANGED
@@ -1,10 +1,6 @@
1
1
  自己解決しました。 質問内のサイトでの
2
2
 
3
- ```datetime_select(オブジェクト名 プロパティ名 [, オプション])
3
+ datetime_select(オブジェクト名 プロパティ名 [, オプション])
4
-
5
-
6
-
7
- ```
8
4
 
9
5
  のプロパティ名とは「カラム名」ですね。
10
6
 
@@ -12,11 +8,7 @@
12
8
 
13
9
  わたしの場合はフォーム内で使いたかったのでfをつけて
14
10
 
15
- ```<%= f.date_select :title, :use_month_numbers=>true %>
11
+ <%= f.date_select :title, :use_month_numbers=>true %>
16
-
17
-
18
-
19
- ```
20
12
 
21
13
  としましたが、たまたまtitleカラムが存在していたのでviweに表示できたようです。
22
14
 

1

書式の改善

2017/09/11 04:47

投稿

seen
seen

スコア49

test CHANGED
@@ -1,6 +1,8 @@
1
1
  自己解決しました。 質問内のサイトでの
2
2
 
3
3
  ```datetime_select(オブジェクト名 プロパティ名 [, オプション])
4
+
5
+
4
6
 
5
7
  ```
6
8
 
@@ -11,6 +13,8 @@
11
13
  わたしの場合はフォーム内で使いたかったのでfをつけて
12
14
 
13
15
  ```<%= f.date_select :title, :use_month_numbers=>true %>
16
+
17
+
14
18
 
15
19
  ```
16
20