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
0
votes
1 answer

Exception when modifying grails scaffolding template using fields plugin

I'm trying to modify fields scaffolding code using fields plugin. I installed twitter bootstrap also. Now I want to show 2 fields in one row. I did the following in my _form.gsp template file: private renderFieldForProperty(p, owningClass,counter,…
Feras Odeh
  • 9,136
  • 20
  • 77
  • 121
0
votes
1 answer

My Nifty Scaffolds Aren't Nifty

I'm using the nifty generators for the first time (Rails 3.2.8) and I've created a simple scaffold with rails g nifty:scaffold post title:string body:string and then I generated a nifty layout too. Then db:migrate fine and start up the server. …
simusid
  • 1,854
  • 3
  • 18
  • 26
0
votes
3 answers

Other layout for scaffolding

My default layout is default.ctp, but I want to use another layout default-scaffolds.ctp only for scaffolding views, when I use in the controller: public $scaffold; I tried in the AppController public function beforeScaffold() { …
mart
  • 354
  • 3
  • 14
0
votes
0 answers

Scaffolding aspnet webapi with jquery grid and unit testing

I've an ASPNET MVC4 project using WebApi, EF5 Code First and Repository and Unit of Work patterns. I'd like to know if someone knows a scaffolder to scaffold the controllers and views, but instead of using something like this, I'd like the views to…
0
votes
3 answers

Is there a way of modyfiong a new Rails model without migrations?

So i'm making a Rails application to learn how to use the framework. I created a user using: rails g model User name:string Then I realized my user also needed another attribute and a relationship with another resource called user_role. Say my…
0
votes
1 answer

How to generate unit tests for controller using the scaffolding template Test.groovy?

If I generate a contoller using the command "create-controller" Grails generates the contoller and a unit test (using the template /src/templates/scaffolding/Test.groovy). After changing bits of the template I now want to generate the unit tests…
Jörg Rech
  • 1,339
  • 2
  • 13
  • 25
0
votes
2 answers

Adding an autoincrementing SNO column in Rails Scaffolding?

Is there a way in which I can create a serial number (SNO) column through scaffolding in Rails which increases on adding a record, decreases on deleting a record and cannot be modified manually?
Arc
  • 1,680
  • 6
  • 30
  • 57
0
votes
1 answer

Scaffolding - access fields from a table in a different database

I have a scaffolded C# site showing a table in one database, but I would like to expose an associated field from a table in another database. There is a stored procedure in the current database that retrieves items from the secondary table, but how…
vwfreak
  • 369
  • 2
  • 5
  • 18
0
votes
2 answers

How should I scaffold this express & backbone application?

I never found an answer that really hit me so I'm just thought I'd put out this question and see what people thought. Here are the details of my app so far: Backend: Php Api serving up JSON Frontend: Express to serve up login / sales / signup / app…
imrane
  • 1,542
  • 2
  • 16
  • 29
0
votes
1 answer

Passing values from model to view via AdditionalMetadata

In my Model I have a propety decorated with the AdditionalMetadata attribute to pass through help text that I want to render: [AdditionalMetadata("HelpText", "help text goes here")] In my EditorTemplate (/views/shared/editorTemplates/Object.ascx) I…
LDJ
  • 6,896
  • 9
  • 52
  • 87
0
votes
1 answer

Scaffold to dropdown list with C# EF4 - code first

I'm using C#.NET, Entity Framework 4.1 and the code first approach. From that i have a bunch of entities and one entity is related to another entity. They have a primary key/foreign key relation. I'm also using ViewModels to specify which attributes…
w00
  • 26,172
  • 30
  • 101
  • 147
0
votes
1 answer

CakePHP 2.2.3 Scaffolding Actions Error

I am working on setting up scaffolding for my application to display CRUD type interface for the users table. I've added the basic model user.php and controller UsersController.php and added scaffolding. Now when i go to localhost/cake/users I get…
Helius 06
  • 87
  • 1
  • 12
0
votes
1 answer

Pluralizing a model in Rails/ActiveRecord

I have a model to keep track of points a student earns. Sometimes they earn 1 point and for some tasks they earn multiple points. The table would look something like…
at.
  • 50,922
  • 104
  • 292
  • 461
0
votes
3 answers

Getting Started with Ruby on Rails - Scaffold

I am new to rails. When I generate scaffold for users , in products/index.html i have this code

Listing users

<% @users.each do |user| %>
Name
<%=h user.name %> <%= link_to…
rails007
  • 45
  • 1
  • 9
0
votes
1 answer

rails scaffolding separating frontend from backend

First of all, I have only worked with scaffolding in rails. What I want to do is I want to separate R in CRUD to different route, so that front end will only have R and the rest of CRUD is in backend. To achieve this I have two options, generating…
pahnin
  • 5,367
  • 12
  • 40
  • 57