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

How to customize ASP.NET MVC 5 scaffolding in VS 2015?

I am developing an ASP.NET MVC 5 project. (not ASP.NET 5). Recently I switched to VS 2015. Now I decided I would like to create customized scaffolded Views and Controllers for my EF entities. So I searched and found Scott Hanselman's article about…
g.pickardou
  • 32,346
  • 36
  • 123
  • 268
13
votes
2 answers

What does scaffolding mean in Laravel 5?

I'm coming back to programming with Laravel by reading the documentation in the official website. Now I realized there is a 5.0 version and I'm trying it, but by I've noticed something called "scaffolding for user registration and authentication"…
Juan Sánchez
  • 1,014
  • 2
  • 15
  • 29
13
votes
3 answers

How can I have Ruby on Rails output Bootstrap v3 scaffolding?

I'd like to be able to use Bootstrap 3 and Sass in my RoR project and have the scaffolding generator output Bootstrap 3 HTML. I'm using Ruby 2 with Rails 4. Nothing too fancy - mostly just having the forms buttons have the appropriate CSS…
cwd
  • 53,018
  • 53
  • 161
  • 198
12
votes
1 answer

How to delete model and scaffolding in RoR?

How can I delete an existing model and scaffolding in ruby on rails 3? Can I just nuke the folders?
femi
  • 974
  • 2
  • 13
  • 44
12
votes
1 answer

Nested scaffold generator for Rails 3?

Is there a scaffold generator for Rails 3 that accommodates nested resources? Rails 2.3 had https://github.com/jeremyf/rspec_on_rails_nested_scaffold https://github.com/mahkhaled/NestedRestfulScaffold https://github.com/nilesh/nested-scaffold but I…
Daniel Kehoe
  • 10,952
  • 6
  • 63
  • 82
12
votes
1 answer

Maven based AngularJS application in Eclipse

We are developing a single-page application (SPA) in which the front end is developed using AngularJS and the business logic is developed using RESTful Web Services with JAX-RS. We are using Eclipse as IDE, Maven for dependency management and build…
Sabarish
  • 141
  • 1
  • 2
  • 8
12
votes
4 answers

How do I include a .gitignore file as part of my npm module?

I am building an npm module that will generate a specific project template for certain software projects. As such, when a developer installs my npm module and runs it, I would like the program to create files and folders in a certain way. One such…
Ryan Jarvis
  • 375
  • 3
  • 13
12
votes
2 answers

How can I force the singular table name on Rails scaffold generator?

I'm working with a legacy database and need to create some CRUD's. How can I use the scaffold generator and tell him the exact name of the table avoiding the pluralize process?? Also the tables are in spanish.
mariowise
  • 2,167
  • 2
  • 21
  • 34
12
votes
2 answers

using value of enum in g:select when enum is attribute of selection object

Example: batchTag is an enumerated type attribute of a batchRange, with values like so: JAN1 "January Biweekly 1", JAN2 "January Biweekly 2", etc. I want to display the VALUE of the batchTag in the select, IOW, the select should contain "January…
Alexx
  • 3,572
  • 6
  • 32
  • 39
11
votes
2 answers

Edit Rails Model From Command Line

I am pretty new to Ruby on Rails, and I was wondering if there was a way to edit the database schema for a model. For example, I have the Subscriber model in my application -- the way I created it was by using rails generate scaffold Subscriber…
hwrdprkns
  • 7,525
  • 12
  • 48
  • 69
11
votes
1 answer

How to combine Yeoman scaffolding with existing Java directory structure

In my existing web project the directory structure for the served html content while development with jetty is "myProject/src/main/webapp/" Now, I want to integrate an angularjs project here. I've played a little bit with Yeoman. If I'm scaffolding…
westor
  • 1,426
  • 1
  • 18
  • 35
11
votes
6 answers

How to use scaffolding and RESTfulness together in Grails 2.3

Official Grails documentation says that Version 2.0.x of the scaffolding plugin includes different scaffolding templates that are aligned with the new REST APIs introcued in Grails 2.3 and above. (taken from here…
aka_sh
  • 549
  • 1
  • 7
  • 18
11
votes
4 answers

Stylesheet_link_tag :all versus :media =>all

I created a new Rails application from a scaffold, but the tutorial claims the following will appear: <%= stylesheet_link_tag "application", :media => "all" %> while I got: <%= stylesheet_link_tag :all %> What is the difference between them?…
Lucy Weatherford
  • 5,452
  • 16
  • 50
  • 76
11
votes
1 answer

uninitialized constant Rails::Generators (NameError)

I'm updating the code for a generator that I wrote, but has been working fine until now. When I simply rue the command bundle exec rails g I get the following…
Marlin Pierce
  • 9,931
  • 4
  • 30
  • 52
11
votes
4 answers

MVC4 scaffolding of database-first Entity Framework model in Visual Studio 2012

I'm having problems with Visual Studio 2012, trying to add an MVC4 Controller with scaffolding. Ideally I would like to have an Entity Framework model (edmx file, etc) generated from a database using Add New Item - ADO.NET Entity Data Model (i.e.…
1 2
3
71 72