Difference between Static and Dynamic Scaffolding?


dynamic scaffolding is when you give the line
scaffold :model_name
in your controller ruby will automatically generate all the appropriate data interfaces at runtime.

static scaffolding is when you give command to generate all the appropriate data
script/generate scaffold Post title:string content:text category_id:integer

Everything the dynamic scaffolding provided–is included, albeit as static content
All you need to do is migrate your DB.

So the main difference is, with dynamic scaffolding you can
generate new, edit and delete methods but with static
scaffolding you can’t

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s