Ruby on Rails Scaffolding

Rails scaffolding is a quick way to generate some of the major pieces of an application. If you want to create the models, views, and controllers for a new resource in a single operation, scaffolding is the tool for the job.
If you type rails generate scaffold User
the "User" part could be any name you choose...

  • it creates all of the the structure for your CRUD (create, read, update, delete)

  • in this creation it includes the controller, model, and views the views for each part of the CRUD (create, read, update, delete), and the code inside them to start you off with your CRUD (create, read, update, delete).

  • its way easier to do this, instead of coding everything yourself, it saves you lots of time!

  • © copyright 2017-2022 Completedone pvt ltd.