Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the generate command sample codes [skip ci] #35995

Merged

Conversation

soartec-lab
Copy link
Contributor

@soartec-lab soartec-lab commented Apr 16, 2019

Summary

Since the files generated by generate command scaffold have changed, the sample code has been updated.

Other Information

$ bin/rails generate scaffold HighScore game:string score:integer
invoke  active_record
create    db/migrate/20190416145729_create_high_scores.rb
create    app/models/high_score.rb
invoke    test_unit
create      test/models/high_score_test.rb
create      test/fixtures/high_scores.yml
invoke  resource_route
 route    resources :high_scores
invoke  scaffold_controller
create    app/controllers/high_scores_controller.rb
invoke    erb
create      app/views/high_scores
create      app/views/high_scores/index.html.erb
create      app/views/high_scores/edit.html.erb
create      app/views/high_scores/show.html.erb
create      app/views/high_scores/new.html.erb
create      app/views/high_scores/_form.html.erb
invoke    test_unit
create      test/controllers/high_scores_controller_test.rb
create      test/system/high_scores_test.rb
invoke    helper
create      app/helpers/high_scores_helper.rb
invoke      test_unit
invoke    jbuilder
create      app/views/high_scores/index.json.jbuilder
create      app/views/high_scores/show.json.jbuilder
create      app/views/high_scores/_high_score.json.jbuilder
invoke  assets
invoke    scss
create      app/assets/stylesheets/high_scores.scss
invoke  scss
create    app/assets/stylesheets/scaffolds.scss
$ bin/rails -v
Rails 6.0.0.beta3

@rails-bot rails-bot bot added the docs label Apr 16, 2019
@soartec-lab soartec-lab force-pushed the update_guide_command_line_sample_code branch from d651eb4 to cdbb224 Compare April 16, 2019 15:11
@eileencodes eileencodes merged commit b49e38b into rails:master Apr 16, 2019
@soartec-lab
Copy link
Contributor Author

Thank you merge !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants