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

undefined method `foo_path' (I haven't called it)

I'm building a very simple rails app without resource routing. I haven't called trans_application_path but view returned an error undefined method `trans_application_path' for ... here's my code. any ideas? Controller # GET /trans/drafts def…
kfs214
  • 63
  • 2
  • 8
-1
votes
2 answers

How to combine Angular 6 and Codeigniter 3 in my web project, so that Angular manages the frontend and Codeigniter manages the backend?

I want to buid a web app that uses Angular 6 to manage the frontend and Codeigniter 3 for backend. The problem is that I don't know how to combine the two, and all the tutorials I looked were using AngularJS which is the version 1 whereas i'm using…
-1
votes
2 answers

Grails: How to change domain class

I have a very basic application made with Grails with only one class. class House { Float price String street static constraints = { } } I want to add the Boolean property called "favorite". So I add it: class House { Float…
Roby Sottini
  • 2,117
  • 6
  • 48
  • 88
-1
votes
2 answers

Scaffolding a Node.js app properly without Express (the app doesn't receive requests)

[This question is quite vague, I apologize for it. I'm trying to address my various troubles by answering the question myself] I am building a Node.js app which has to perform various tasks at given intervals. Here is the global scaffold (involves…
klonaway
  • 449
  • 3
  • 18
-1
votes
3 answers

Change Ruby on Rails scaffolding order

I have a Ruby on Rails app and I want to deploy it on Heroku. Some errors appear and I think it is because the scaffolding order. By that, I mean that a class named submissions is first created, but this class references another class named Users…
avm_69
  • 183
  • 2
  • 11
-1
votes
1 answer

Function that creates a Model View and Controller. (how to call safely)

Sorry for the confusing title, however, I'm interested in creating a function that creates new default model, view, and controller files with the name i supply through the function to a defined URL directory. To be more clear, i want to auto create…
Pacifici
  • 3
  • 4
-1
votes
1 answer

Bootstrap grid offset

I'm having trouble getting one of my bootstrap hero units to respond to an offset command:

text

It appears and…
Virge Assault
  • 1,356
  • 6
  • 18
  • 40
-1
votes
2 answers

Understanding Scaffolding in Rails Better

I've read the rails guides but there are some things that when I actually do it myself I still do not understand. For example, how come when I visit my show view on localhost I get an error? Scaffolding created a show action in my controller that…
user3408293
  • 1,377
  • 6
  • 18
  • 26
-1
votes
1 answer

How to tell yeoman to scaffold javascript vs. coffee files

I was wondering if there is a way (i.e. configuration) where we can tell yeoman or the generator to scaffold .js files or .coffee files. I'm currently using angular-generator and whenever I try to "yo angular:controller ctrlName", I get…
Qster123
  • 59
  • 1
  • 8
-1
votes
2 answers

Rails 3.2 Category & Subcategory

I'm actually working on an app that needs to link an exercise to many subcategories, and the subcategories are children of a parent category. This is my code: Exercice.rb belongs_to :subcategory class Exercice < ActiveRecord::Base attr_accessible…
-1
votes
2 answers

What is Scaffolding

I am having a question on scaffolding. Can someone explain what it does and how it works. I have search Google but I couldn't find anything that explained all the steps that happens.
-1
votes
1 answer

how do i override local files with current version on github?

I generated and destroyed a scaffold, generated a new scaffold, which resulted in a huge mess, such as the CSS (nav fonts are not correct, buttons have a hover yet nothing was specified in the file originally). The "description" field did not…
-1
votes
2 answers

Action Controller: Syntax Error, Missing Parentheses

In my rails app, using only the scaffold generated view, plus bootstrap, I'm getting an Action Controller error: SyntaxError in Orders#index Showing /Users/Michael/Documents/Morning_Coffee/app/views/orders/index.html.erb where line #39…
-2
votes
1 answer

Scaffold or django-admin without Auth app

I created my own Auth app, and now Admin is not working, what can you suggest? Exception now is: 'User' object has no attribute 'is_authenticated' I know my User really have no such method. So I have 2 ways: - change admin - adapt my user…
Igor Golodnitsky
  • 4,456
  • 7
  • 44
  • 67
-2
votes
1 answer

Android studio tools to build client for REST API

in .NET platform nobody build manually client of REST functions, need to set endpoint URL and embedded in Visual Studio tool review endpoint URL with ?WSDL suffix (for REST in SOAP/WSDL/DISCO format) or /help (with WebApi format), than tools make…
Viacheslav
  • 1,054
  • 12
  • 16
1 2 3
71
72