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
5
votes
3 answers

What is the point of scaffolding?

I don't understand the significance of something like rails, codeigniter, etc. and scaffolding. From what I read, and maybe it's just wrong, scaffolding isn't used in the production environment. I don't know what it's for. It's neat but I don't…
johnny
  • 19,272
  • 52
  • 157
  • 259
5
votes
2 answers

react-native init hangs/stalls with no error

New to react, working through a udemy tutorial on a Mac. Installed node ok but when I go to start a project react-native init projectname terminal output: This will walk you through creating a new React Native project in…
sthoward
  • 81
  • 2
  • 13
5
votes
1 answer

How to specify which foreign key column to use in views when scaffolding

How can I specify which foreign key column has to be used in the views when scaffolding? Im some cases MVC seems to be smart enough to take the right column from the other table, but atm I am having an issue with one and was wondering if I can…
Jordy
  • 948
  • 2
  • 9
  • 28
5
votes
1 answer

Is there a way to obtain ModelMetadata.Properties for ModelMetadata.RelatedEntities?

I've been reading up on the Microsoft.AspNet.Scaffolding.Core.Metadata namespace; however, I am new to this object model and perhaps I am overlooking something. I am creating T4 text templates and would like to auto-generate output for related…
5
votes
1 answer

Customize rails generate scaffold

I have a problem, before the command "rails generate scaffold test name: string" generated controllers like this: class Teste < ApplicationController before_action :set_teste, only: [:show, :edit, :update, :destroy # GET /testes # GET…
5
votes
4 answers

How to model this entity

I am creating an application for a shop, where clients are divided into two groups: receivers and payers. 1) Many receivers can be related to one same payer. 2) Payer can be receiver itself, thus he is related to one receiver only My code so far…
kul_mi
  • 1,131
  • 5
  • 15
  • 33
5
votes
3 answers

Ajax request causing "param is missing or the value is empty" error

OK, after I fixed this issue, now I have this new one, which I don't seem to get my head around. This is my view and Javascript code: