Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ページを表示しているときにのみ適用されるcssを指定したいと思います。解決策が見つかりませんでした。
ご協力ありがとうございました
設定ファイルpages.rbで config.use_view_templates=true のフラグをtrueにします
そのページのテンプレートを選択するためのオプションが提供されます。 [管理ページ]タブ->[詳細オプション]にあります。 また、pages.rbにテンプレート名を追加する必要があります 。config.view_template_whitelist これで、そのページにスタイルを追加できます。 お役に立てば幸いです。