scaffolding

Cant add a new function to my controller class (RoRails)

Im trying to define a new function in my Controller class. I made up everything using Scaffolding and it worked okay. But now, when i add a new function to the controller, setting up the view and so, it says some extrange error (tries to load show action when i asked for login). Whats scaffold doing that im not? Thanks ...

NoMethodError in Nutritions#new - undefined method '' for nil:NilClass

I have an error in my nifty_scaffold... For some reason (didn't change any standard code, checked the routes.rb, ...), creating a new nutrition won't work. Could anyone explain me how and what the solution is? I think i have included all necessairy code... The error in detail is: undefined method `generated_methods' for nil:NilClass ...

xml editing backend

I would like to have an xml editing interface for a site's backend. There are many php based CMSes of varying sizes (my favorite being modx), but for some projects it is just overkill. The point of this xml management system would be that the user would have a graphical interface for xml file generation, from the browser. some additi...

Asp.net Dynamic Data - Field not rendered on List page

I have created a Dynamic Data site against an Entity Framework Model I have 2 fields which are nvarchar(max) in the DB and they do not get rendered on the list view This is probably a sensible default But how do I override this? Have tried adding various attributes to my MetaData class e.g [ScaffoldColumn(true)] [UIHint("RuleData")]...

ASP.NET MVC: Accessing ModelMetadata for items in a collection

I'm trying to write an auto-scaffolder for Index views. I'd like to be able to pass in a collection of models or view-models (e.g., IEnumerable<MyViewModel>) and get back an HTML table that uses the DisplayName attribute for the headings (th elements) and Html.Display(propertyName) for the cells (td elements). Each row should correspond ...

Restoring Typus plugin after changing DB Schema

I installed Typus plugin (http://intraducibles.com/projects/typus) for my app and I love it. But along the development of the app I frequently do migrations and change the DB Schema and relationships, and then the plugin fails. Is there a way to re-generate the plugin with the new schema? Thanks! ...

Scaffold default files are the best practice?

Hey, i have some experience with MVC. but I'm new to rails. I'm using the scaffold command to generate some default files. The model looks clean and nice, but the controller and the views aren't really dry. The contents of new.html.erb and edit.html.erb are almost the same and the methods new/edit and create/update are doing almost the s...

Why is Scaffolding Not Working in Ruby on Rails?

I created a controller and a model. The controller is called "Admin" and the model is called "Album". I edited database.yml with proper info and did the rake db:migrate command which didn't return any errors and did migrate the db inside schema.rb. Inside the controller I wrote: class AdminController < ApplicationController scaffold ...

The requested URL /index.php/blog/scaffolding/add was not found on this server.

I am new in Codeigniter i am seeing the Video blog tutorials from Codeigniter but when i am useing scaffolding and try to add something give me like this massage. <?php class Blog extends Controller { function Blog() { parent::Controller(); $this->load->scaffolding('entries'); } function index() { $data['title'] = "T...

Grails: Debugging scaffolding template

Hello, is there a way to debug the scaffolding template (generated in /src/template/scaffolding). Not to debug the view gsp files, but the template itself. I guess I could put some comments.. other than that.. thanks... Babu ...

SubSonic - Scaffoling with ObjectDataSource

Using SubSonic v2.2, I'd like to use the scaffolding control. All my data access is done through stored procedures, and as so, I'm wondering if this will be possible, as there are only execute permissions on my sprocs, and no direct table access? Thanks. ...

ASP.NET 2.0 - scaffolding a database table for webforms

Can you recommend a tool that can analyze a SQL database table, read the table columns, and populate an .aspx page with appropriate controls (i.e. textboxes with matching labels)? See this demo of ComponentOne InputPanel for WinForms for the functionality desired. Are there any built-in tools for ASP.NET 2.0 WebForms that can help buil...

Rails3 own scaffold generator

./script/rails g generator admin class AdminGenerator < Rails::Generators::NamedBase def self.source_root @source_root ||= File.expand_path('../templates', __FILE__) end def manifest #I know I can copy my template files with the 'template' method #How I can generate a migration, and a model here ? end end ...

Using text-filter inside expanding-reporter

I have an report on confluence using the reporting plugin, the report lists comments of all the children page, and filters the comments where the first letter is "c"; {report-table} {expanding-reporter:content:all comments|as=comment} {local-reporter:content:children} {text-sort:comment:creation date |order=descending} {text-filte...

ASP.NET Forms automation/serialization/binding

I need to implement many forms in ASP.NET application (for IRS mostly). There are will be a lot of standard controls for each form (textboxes, dropdowns, checkboxes, radio). And business entity assigned to each. What's the best solution to automate this process? I need to: Have layout stored in DB (in XML). Layout must support severa...

Grails scaffolding, One-To-Many field, set to null

I have a domain class that can have a nullable one-to-many field. When using dynamic scaffolding, the view will insert a value from the foreign table (usually the first one in the list) even if i don't want to set this field. ...

grails scaffolding broken

Grails scaffoldin does not work in my grails application. When I go from the main page to the specific controller page it output something like this: Error 500: Servlet: default URI: /myapp/myDomain/list Exception Message: Tag [sortableColumn] is missing required attribute [title] or [titleKey] at /webTestDummyDomain/list:25 Caused by: ...

Scaffolding Extensions: NoMethodError

Not sure if many people are familiar with Scaffolding Extensions for Ruby, but I've looked through their docs, forums, and even the source code of the Heroku test site, and not found an answer. I made a basic Sinatra app and followed right from the RDoc's instructions: require 'scaffolding_extensions' require 'sinatra/base' class Thing...

Can't select View Content dropdown when adding view in MVC using Interfaces

I have my Model defined externally in two projects - a Core project and an Interface project. I am opening the Add View dialogue from my controller, and selecting Create a strongly typed view. In the drop down list, I can select the concrete types like MyProject.Model.Core.OrderDetails, but the interface types like MyProject.Model.Int...

Web frameworks with scaffolding and/or web based DB administration tools?

I'm looking for web app frameworks and/or database administration tools, either popular and unpopular, written in any language, for any relational database. In short, I'm looking for web accessible CRUD front-ends with minimal programming effort. For example: phpMyAdmin (MySQL administration tool) Ruby on Rails (web app framework wit...