Questions tagged [scaffolding]

Scaffolding is a meta-programming method of building database-backend software applications.

Scaffolding is a meta-programming method of building database-backend software applications. It is a technique supported by some model-view-controller frameworks (like Ruby on Rails, CodeIgniter, Spring Roo among many others) in which the programmer may write a specification that describes how the application database may be used. Some tool uses this specification to generate code to cover basic CRUD (Cread Read, Update, Delete) functionality, effectively treating the template as a scaffold on which to build a more powerful application. (View Wikipedia definition)

In many cases this scaffold can and has to be modified if we want to achieve more complex functionality and it's a reason why this feature is not recommended in complex sites.

Recently the term scaffolding has also been used for the use of pre-defined layouts or grids in CSS frameworks like Twitter-Bootstrap.

1070 questions
8
votes
1 answer

Updating scaffolded controllers and views with model changes

For the basic functionality of my project I've been defining Entity Framework models and then using the scaffolding feature of Visual Studio to implement CRUD functionality (Right Click -> Add -> New Scaffolded Item...). If I need to make a change…
John Dorean
  • 3,744
  • 9
  • 51
  • 82
8
votes
1 answer

Grails: Debugging scaffolding template

is there a way to debug the scaffolding template (generated in /src/template/scaffolding). Not to debug the view gsp files, but the template itself. I guess I could put some comments.. other than that..
bsr
  • 57,282
  • 86
  • 216
  • 316
8
votes
3 answers

RuntimeError in PinsController#index: declare the formats your controller responds to in the class level

While working on my rails app I created a "Pins" scaffold using the following command in my terminal: rails generate scaffold Pins description:string --skip-stylesheets This creates the scaffold in my applications and then I run: rake…
Kinan
  • 85
  • 1
  • 5
8
votes
2 answers

Custom Scaffolding Templates in Visual Studio 2013

Previously, with Visual Studio 2012, I was able to bring the CodeTemplates folder up to my project directory and then modify the existing T4 templates or add entirely new T4 templates to meet my particular code generation requirements. It seems that…
Sean
  • 293
  • 1
  • 4
  • 10
8
votes
3 answers

What is the Real Advantage to ScaffoldColumn Attribute set to False in MVC 3 Model ID Properties

I’m new to MVC and when I built my model classes for a code first approach each key ID column had the attribute [ScaffoldColumn(false)] set. I did this because I didn’t want the IDs displayed in the views obviously, and I know that a work around to…
Shawn
  • 509
  • 3
  • 12
  • 25
7
votes
6 answers

Code generation for iOS and android

I'm searching for a framework to create apps for both Android and iOS from one codebase. I'm aware of Appcelarator and PhoneGap etc. However I need a different kind of product. I'm not sure if it exists. I can't find it here or on google. We are a…
wasigh
  • 895
  • 1
  • 11
  • 21
7
votes
2 answers

GitHub - template repository to copy settings and labels

I really liked the feature GitHub Template Repository where according to the documentation After you make your repository a template, anyone with access to the repository can generate a new repository with the same directory structure and files.…
paul58914080
  • 282
  • 3
  • 8
7
votes
1 answer

MvcScaffolding: How to support many-to-many relationships between entities

I started using MVC 3 and used MvcScaffolding to scaffold these models: namespace Conference.Models { /* * Speaker can have many session * And session can have many speakers */ public class Speaker { public Guid…
Yosi
  • 2,936
  • 7
  • 39
  • 64
7
votes
4 answers

Missing Scaffolding Options in ASP.NET MVC 3 Add Controller Dialog

I have downloaded and installed the release version of ASP.NET MVC 3 (File version: 1.13.113.0), Created a new project of type ASP.NET MVC 3 web application. When I right click on Controllers folder=>Add Controller, The Add Controller dialog…
Kamyar
  • 18,639
  • 9
  • 97
  • 171
7
votes
2 answers

Can you make visual studio scaffold etc. with bootstrap 4 in .NET MVC templates?

When you create a new project in vs17 (basic mvc .net web application in c#). It comes with bootstrap 3, which means all the scaffolded pages and designs are wrong since they revamped the column sizing system. Is there any way VS can be updated so…
ObedMarsh
  • 433
  • 4
  • 19
7
votes
2 answers

Asp.Net Core and Scaffold

The generation of automatic scaffold to Asp.Net Razor Page is compatible to bool data types? I ask about it, because I'm following this tutorial: https://learn.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/model. And at a point, after create…
Rafael
  • 966
  • 12
  • 22
7
votes
5 answers

Spring/Hibernate Entity Management Web Interface/UI

We have a server application that exposes a certain model, and set of services built on that model, to a particular client UI through a number of protocols. This is the kind of server application where, once it's set-up, there's not much manual…
tmbrggmn
  • 8,680
  • 10
  • 35
  • 44
7
votes
11 answers

Scaffolding for PHP

Is there any thing in PHP to create basic scaffold, like in Rails? EDIT: I need something to prototype quickly..
Akshay
  • 11,803
  • 5
  • 29
  • 26
7
votes
2 answers

scaffolding template for creating repositories

I'm a new comer to the Scaffold world to build repositories creating the CRUD operations. There are a lot of scaffolding templates ,I'm so confused which one will suit my requirement . I use asp.net web forms (not asp.net MVC) I use Entity…
Anyname Donotcare
  • 11,113
  • 66
  • 219
  • 392
7
votes
1 answer

Fails to Scaffolding on project which has a reference to edmx

I have Demo solution with two projects like this : I have installed T4Scaffolding.Install-Package T4Scaffolding I have added a reference of AdventureWorksModel to my RepoLayer Project and install EF6 . Now when i try to run the following command…
Anyname Donotcare
  • 11,113
  • 66
  • 219
  • 392