top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between Static and Dynamic Scaffolding in context of Ruby on Rails

+3 votes
2,270 views
What is the difference between Static and Dynamic Scaffolding in context of Ruby on Rails
posted Oct 28, 2014 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Dynamic Scaffolding is used to give the model name that is being used with the function like: scaffold: model_name. Whereas, Static Scaffolding requires manual entry in the command and it is given as:

Script/generate scaffold Post title: string content:text category_id: integer

Dynamic Scaffolding automatically generates the entire content and user interface at runtime. Whereas, Static Scaffolding requires the insertion of the command to, generate the data with their fields.

Dynamic Scaffolding doesn’t require the database to be integrated as it gets created in runtime. Whereas, Static Scaffolding requires the database to, be migrated.

Dynamic Scaffolding allows the generation of new, edit and deletes methods for the use in application. Whereas, Static Scaffolding doesn’t allow any such generation to, take place.

answer Oct 30, 2014 by Kali Mishra
...