Skip to content

Commit 923a002

Browse files
committed
Update the result of generate command [skip ci]
1 parent 63ca58a commit 923a002

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

guides/source/engines.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -347,14 +347,11 @@ create app/views/blorgh/articles/new.html.erb
347347
create app/views/blorgh/articles/_form.html.erb
348348
invoke test_unit
349349
create test/controllers/blorgh/articles_controller_test.rb
350+
create test/system/blorgh/articles_test.rb
350351
invoke helper
351352
create app/helpers/blorgh/articles_helper.rb
352-
invoke test_unit
353-
create test/application_system_test_case.rb
354-
create test/system/articles_test.rb
353+
invoke test_unit
355354
invoke assets
356-
invoke js
357-
create app/assets/javascripts/blorgh/articles.js
358355
invoke css
359356
create app/assets/stylesheets/blorgh/articles.css
360357
invoke css
@@ -394,9 +391,8 @@ be isolated from those routes that are within the application. The
394391
Next, the `scaffold_controller` generator is invoked, generating a controller
395392
called `Blorgh::ArticlesController` (at
396393
`app/controllers/blorgh/articles_controller.rb`) and its related views at
397-
`app/views/blorgh/articles`. This generator also generates a test for the
398-
controller (`test/controllers/blorgh/articles_controller_test.rb`) and a helper
399-
(`app/helpers/blorgh/articles_helper.rb`).
394+
`app/views/blorgh/articles`. This generator also generates tests for the
395+
controller (`test/controllers/blorgh/articles_controller_test.rb` and `test/system/blorgh/articles_test.rb`) and a helper (`app/helpers/blorgh/articles_helper.rb`).
400396

401397
Everything this generator has created is neatly namespaced. The controller's
402398
class is defined within the `Blorgh` module:
@@ -425,10 +421,7 @@ end
425421
This helps prevent conflicts with any other engine or application that may have
426422
an article resource as well.
427423

428-
Finally, the assets for this resource are generated in two files:
429-
`app/assets/javascripts/blorgh/articles.js` and
430-
`app/assets/stylesheets/blorgh/articles.css`. You'll see how to use these a little
431-
later.
424+
Finally, the assets for this resource are generated in one file: `app/assets/stylesheets/blorgh/articles.css`. You'll see how to use these a little later.
432425
433426
You can see what the engine has so far by running `rails db:migrate` at the root
434427
of our engine to run the migration generated by the scaffold generator, and then
@@ -579,9 +572,8 @@ invoke test_unit
579572
create test/controllers/blorgh/comments_controller_test.rb
580573
invoke helper
581574
create app/helpers/blorgh/comments_helper.rb
575+
invoke test_unit
582576
invoke assets
583-
invoke js
584-
create app/assets/javascripts/blorgh/comments.js
585577
invoke css
586578
create app/assets/stylesheets/blorgh/comments.css
587579
```

0 commit comments

Comments
 (0)