aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/generators.md
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2018-10-02 23:53:12 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2018-10-03 00:03:16 +0530
commite8546aba904fb6685ef2e61f1623c64e699a2c9c (patch)
tree0cd43409320fff1f9a7bd7bc9c1f00236ab4d9c9 /guides/source/generators.md
parentcf608ee34dd833b0357ef4eefa692db33242d2aa (diff)
downloadrails-e8546aba904fb6685ef2e61f1623c64e699a2c9c.tar.gz
rails-e8546aba904fb6685ef2e61f1623c64e699a2c9c.tar.bz2
rails-e8546aba904fb6685ef2e61f1623c64e699a2c9c.zip
Update the docs now that webpacker is default [ci skip]
Diffstat (limited to 'guides/source/generators.md')
-rw-r--r--guides/source/generators.md5
1 files changed, 1 insertions, 4 deletions
diff --git a/guides/source/generators.md b/guides/source/generators.md
index 89424a161b..f028d14998 100644
--- a/guides/source/generators.md
+++ b/guides/source/generators.md
@@ -203,8 +203,6 @@ $ rails generate scaffold User name:string
create test/application_system_test_case.rb
create test/system/users_test.rb
invoke assets
- invoke coffee
- create app/assets/javascripts/users.coffee
invoke scss
create app/assets/stylesheets/users.scss
invoke scss
@@ -426,9 +424,8 @@ $ rails generate scaffold Comment body:text
create test/application_system_test_case.rb
create test/system/comments_test.rb
invoke assets
- invoke coffee
- create app/assets/javascripts/comments.coffee
invoke scss
+ create app/assets/stylesheets/scaffolds.scss
```
Fallbacks allow your generators to have a single responsibility, increasing code reuse and reducing the amount of duplication.