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
10
votes
2 answers

Nicer alternative to the default Rails scaffolding stylesheet: scaffold.css?

I'm looking for a more attractive alternative to the standard scaffold.css? Has anyone come across a stylesheet that was specifically designed as a more attractive, less sparse alternative to the built-in scaffold.css?
emo
10
votes
5 answers

How to create custom scaffold templates in ASP.NET MVC5?

I'm using ASP.NET MVC5 and VS2013 I've tried to copy CodeTemplates folder from C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\VWDExpress\ItemTemplates\CSharp\Web\MVC 4\CodeTemplates with subfolders "AddController", "AddView" and…
9
votes
6 answers

MVC3 Add Controller Scaffolding Error - Unsupported Context Type

I'm creating a new MVC 3 application. Steps taken: 1. Added new model by right clicking on Models and adding "LINQ to SQL Classes" 2. Dragged tables from Server Explorer to my new dbml layout and saved 3. Right click on…
fhilton
  • 698
  • 1
  • 8
  • 9
9
votes
4 answers

Scaffolding for WPF using MVVM?

Can anyone tell me if its possible (if some utility exists??) to create scaffolding taking into consideration MVVM with WPF. My idea here is i seem to have a lot fo data access forms, and of course i would like to Customize them but initially i…
Mark Smith
9
votes
3 answers

Cannot find Identity's Layout.cshtml file even after scaffolding all identity pages

I am using Asp.net core and I have scaffolded all the identity pages, it created a folder in my root directory named areas > Identity > Pages, and I have all the razor pages here and some pages in accounts folder and some in manage folder as shown…
9
votes
3 answers

MVC 3 - Scaffolding drop down list

I am playing with the Scaffolding that is in Asp.net mvc I have a property on my view model for countries public IEnumerable Countries { get; set; } Yet, when I create a view and specify the viewmodel it doesn't scaffold a drop down…
ChrisCa
  • 10,876
  • 22
  • 81
  • 118
9
votes
3 answers

Ruby on rails link_to syntax

After following a tutorial Ive found. Im now redoing it again, without the scaffolding part, to learn it better. However, editing my \app\views\home\index.html.erb to contain:

Rails test project

<%= link_to "my blog", posts_path> I get an…
Mizipzor
  • 51,151
  • 22
  • 97
  • 138
9
votes
1 answer

Entity Framework Core: Scaffolding to Avoid Data Loss after to change Model/Entity

I had the following Model: public class Promotion : BaseModel { [Required] public string Description { get; set; } [Required] public string Market { get; set; } [Required] public double Price { get; set; } } It was created…
9
votes
1 answer

Rails 4 - strong parameters with scaffold - params.fetch

I use scaffold commands to make my components in my Rails 4 app. Recently, the terminology used in the method to set the strong params has changed from params.require to params.fetch and now there are curly braces in the setup. private # Never…
Mel
  • 2,481
  • 26
  • 113
  • 273
9
votes
3 answers

Rails scaffolding for JSON only

When I use rails g scaffold Model key:string value:string command it creates both controller and views (erb, scss, js). How can I generate only controller which will respond with only JSON format.
kleverigheid
  • 111
  • 1
  • 5
9
votes
2 answers

Initial skeleton for Firefox extensions?

I always seem to have a hard time starting a new Firefox extension. Can anyone recommend a good extension skeleton, scaffold, or code generator? Ideally one that follows all the best practices for FF extensions?
Keeth
  • 2,100
  • 2
  • 21
  • 29
8
votes
1 answer

rails 3.1: how override inherited_resources and permit rails scaffolding to work normally again?

SOLUTION FOUND: See comment Building a new rails 3.1 app. Started with a basic blog_entries model to get the hang of it. No surprises. Then I added ActiveAdmin, got that working okay with my existing model. But now when I try to scaffold a new…
jpw
  • 18,697
  • 25
  • 111
  • 187
8
votes
1 answer

How do I add new action and view with script/rails generate?

There is any way to generate a new action and view to an existing controller ? I've tried to do following to an existing controller $ script/rails generate controller posts view where view is the new action which I want to add to controller. I know…
ruslander
  • 3,815
  • 4
  • 32
  • 34
8
votes
4 answers

Is there any PHP framework's scaffolding that can generate migration like Ruby on Rails?

In rails, when generating model, migration is created also. I'm wondering any PHP framework can do it also? I'm trying Yii framework now, but seems like I need to generate the migration manually first then generate a model. (or even a third step to…
vk.edward.li
  • 1,899
  • 16
  • 22
8
votes
3 answers

Re-Generating Scaffold

Is there any way to re-generate views from newly updated model?
totocaster
  • 6,243
  • 5
  • 37
  • 46