Why Ruby on Rails abandoned the scaffold method

I am learning Ruby on Rails, so I’m sure that I’ll find out sooner or later.

Why would the scaffold method be deprecated in version 2 of Rails?

+3
source share
4 answers

The scaffold method went against the spirit of the forests, which is designed to give you a starting point that you must use for your needs. Dynamically generating a scaffold, you have nothing to edit.

The new scaffold generator method allows you to edit archive files so you can use it to create what you really need.

+10
source

, Dynamic Scaffolding, .

, Dynamic Scaffolding , Dynamic Scaffolding , , , , ., .

AWDWR, p81 () ( ).

: script/ _ model_name .

+9

, Rails, , scaffold. ActiveScaffold.

+3
source

Because people thought it should be used for production, which would be a terrible idea. Instead, you create a scaffold that you can easily edit and get finished production from it.

+1
source

Source: https://habr.com/ru/post/1702898/


All Articles