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

Scaffolding error with CodeIgniter_2.1.2

I am using codeigniter 2.1.2 and I want to use scaffolding feature to add information to table. When I set this $route['scaffolding_trigger'] = 'scaffolding'; in routes.php and call it in controller $this->load->scaffolding('applicants'); I get the…
0
votes
1 answer

Cakephp baking view problems on mac os

im new to cake and i have some problems while baking... I'm using cake php 2.2.1 on a MAMP server on MAc OS. I have turned off plurar/singlar infector... And i try to bake some tables: CREATE TABLE users ( id INT(11) NOT NULL AUTO_INCREMENT…
mikrowelt
  • 143
  • 12
0
votes
1 answer

MVC scaffolding is great, until I need to extend my database schema

I'm using a code first approach to a simple web application: currently just a single table of book reviews. I modified the model to include an extra column ("Rating"), and I also have an initialiser which correctly rebuilds the database every time…
0
votes
1 answer

MVC3, Scaffolding a Controller, available selections from Model drop-down

I have a MVC3 project that is referencing a WCF web service....and that WCF service references a data class library. When I try to scaffold a controller, I have the option to select a Model class from a drop-down. I would expect to see the data…
user1125648
  • 37
  • 2
  • 6
0
votes
1 answer

Data annotation validation rule 'Required' doesnt work with 'varchar' (but works fine with 'int')

I build MVC3 app with EF 4.3 (database first) using DBContext Generator and using Scaffolding options template to create controller with its views so it creates a view with the model (data annotations) client validation depending on the properties…
0
votes
1 answer

Retrieving [DisplayName] DataAnnotation in T4 template

I have downloaded the MVCScaffolding nuget package within VS2010. I am trying to retrieve a [DisplayName data annotation from my model in order to use it within the index.cs.t4 template. This page OneToMany Relationships has shown me how to modify…
Tim
  • 7,401
  • 13
  • 61
  • 102
0
votes
1 answer

Autogenerate Jquery Autocomplete in CRUD grails scaffolding (one-to-many relationships)

I have altered the src/templates/scaffolding/renderEditor.template file in a grails project, in order to insert, the necessary html field boxes (and javascript code) to configure and use jquery autocomplete, in all the relationships "many-to-one".…
0
votes
1 answer

Ruby on rails scaffolding in Netbeans 6.5

I am playing with the scaffold feature of rails in Netbeans 6.5. Right click->Generate gives me a menu that allows me to create the scaffold but asks for "attribute pairs". I have some tables with quite a few columns and would rather have the…
mikewilliamson
  • 24,303
  • 17
  • 59
  • 90
0
votes
1 answer

Routing Error after scaffolding and migration

I created a scaffold without problems $ rails generate scaffold New name:string title:string content:text Rake command to run the migration (no problems as before, table correctly created) $ rake db:migrate Edit…
Noeland
  • 1
  • 1
0
votes
2 answers

Automatic website creation using rails

I am looking for a template generator for rails, much like the scaffolding, but complete with preset pages and css, everything already built-in generically. I am unsure where or how to search for this. The reason I want something like that and not…
Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
0
votes
3 answers

Express JS create coffeescript scaffold

Looking for a way to produce an express scaffold in coffeescript straight off the bat. At the moment $ express 'myapp' just creates js files. Any pointers will be appreciated. Thanks.
Clive
  • 3,991
  • 3
  • 17
  • 15
0
votes
1 answer

Can I possibly modify scaffold in CakePHP so that it won't display all the fields in my table?

Scaffolding works like magic. However, there are fields in my table that does necessarily needed to be edited. How can I customize $scaffold so that I won't manually create the view for editing my table. Thanks guys.
Charmie
  • 2,468
  • 7
  • 33
  • 47
0
votes
0 answers

ASP.NET MVC Scaffolding + associations

I scaffolded a CRUD scenario for my model to start from. Now I need to add a radio button list field (which doesn't exist but the scenario for a dropdownlist is the same so think of that) for one field (an association to another type, think of a…
Koen
  • 3,626
  • 1
  • 34
  • 55
-1
votes
1 answer

How can I write Annotation member with using JavaPoet?

I want to generate an annotation with its members. The structure of annotation is public className (@Value("${topics.className.command}") String className){ } Because of $ sign I take error. Pls help me how can I write this structure? The places I…
-1
votes
1 answer

Is there a way to fix adding user roles in ASP.NET Identity MVC5? Cannot add roles

I have been following a tutorial lately, and I am in the phase of add a new role for users. I would like to add a new role, but the problem is nothing happens after I submitted or added a role. The page just refresh and that' it. My goal here is…