From cbf178664d3a3ecd55ad127d2a92f120b244b950 Mon Sep 17 00:00:00 2001 From: atul-shimpi Date: Mon, 3 Aug 2015 08:27:37 +0530 Subject: Inform user to add styles in correct location in application.css --- .../rails/app/templates/app/assets/stylesheets/application.css | 3 ++- .../lib/rails/generators/rails/plugin/templates/rails/stylesheets.css | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css b/railties/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css index 0cdd2788d0..7506c6d89e 100644 --- a/railties/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css +++ b/railties/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css @@ -7,7 +7,8 @@ * * You're free to add application-wide styles to this file and they'll appear at the bottom of the * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS - * files in this directory. It is generally better to create a new file per style scope. + * files in this directory. If you want to add any styles in this file, they should be added after the + * last require_* statement. It is generally better to create a new file per style scope. * *= require_tree . *= require_self diff --git a/railties/lib/rails/generators/rails/plugin/templates/rails/stylesheets.css b/railties/lib/rails/generators/rails/plugin/templates/rails/stylesheets.css index 0cdd2788d0..7506c6d89e 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/rails/stylesheets.css +++ b/railties/lib/rails/generators/rails/plugin/templates/rails/stylesheets.css @@ -7,7 +7,8 @@ * * You're free to add application-wide styles to this file and they'll appear at the bottom of the * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS - * files in this directory. It is generally better to create a new file per style scope. + * files in this directory. If you want to add any styles in this file, they should be added after the + * last require_* statement. It is generally better to create a new file per style scope. * *= require_tree . *= require_self -- cgit v1.2.3