質問編集履歴

2

タイトルの変更

2016/02/04 07:44

投稿

honsan
honsan

スコア6

test CHANGED
@@ -1 +1 @@
1
- railsでアセットパイプインが実行されない
1
+ Ruby on RailsでBootstrapがブウザに反映しない
test CHANGED
File without changes

1

assets/stylesheets/application\.cssに直接custom\.css\.scssの内容を書き込んでみた結果

2016/02/04 07:44

投稿

honsan
honsan

スコア6

test CHANGED
File without changes
test CHANGED
@@ -50,6 +50,102 @@
50
50
 
51
51
 
52
52
 
53
+ ちなみに試しにcustom.css.scssファイルの内容をそのままapplication.cssに追加し.scss拡張子を加えたところbootstrapが反映されました。
54
+
55
+ 以下が変更を加えたapplication.css.scssファイル
56
+
57
+ ```lang-scss
58
+
59
+ /*
60
+
61
+ * This is a manifest file that'll be compiled into application.css, which
62
+
63
+ * will include all the files listed below.
64
+
65
+ *
66
+
67
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets,
68
+
69
+ * vendor/assets/stylesheets, or vendor/assets/stylesheets of plugins, if any,
70
+
71
+ * can be referenced here using a relative path.
72
+
73
+ *
74
+
75
+ * You're free to add application-wide styles to this file and they'll appear
76
+
77
+ * at the bottom of the compiled file so the styles you add here take
78
+
79
+ * precedence over styles defined in any styles defined in the other CSS/SCSS
80
+
81
+ * files in this directory. It is generally better to create a new file per
82
+
83
+ * style scope.
84
+
85
+ *
86
+
87
+ *= require_tree .
88
+
89
+ *= require_self
90
+
91
+ *= require custom
92
+
93
+ */
94
+
95
+ @import "bootstrap-sprockets";
96
+
97
+ @import "bootstrap";
98
+
99
+
100
+
101
+
102
+
103
+ /* universal */
104
+
105
+
106
+
107
+ body {
108
+
109
+ padding-top: 60px;
110
+
111
+ }
112
+
113
+
114
+
115
+ section {
116
+
117
+ overflow: auto;
118
+
119
+ }
120
+
121
+
122
+
123
+ textarea {
124
+
125
+ resize: vertical;
126
+
127
+ }
128
+
129
+
130
+
131
+ .center {
132
+
133
+ text-align: center;
134
+
135
+ }
136
+
137
+
138
+
139
+ .center h1 {
140
+
141
+ margin-bottom: 10px;
142
+
143
+ }
144
+
145
+ ```
146
+
147
+
148
+
53
149
  ####その他関連ファイル
54
150
 
55
151
  **app/assets/stylesheets/application.css**