Questions tagged [scaffold]

429 questions
1
vote
0 answers

CakePHP and scaffold views

Where can I edit scaffold views? In Cake Book is information about: Custom scaffolding views for a specific controller (PostsController in this example) should be placed like…
Clark
  • 2,083
  • 6
  • 32
  • 47
1
vote
1 answer

'Unknown key(s)' ArgumentError

I'm working on a moderating feature for my application, which is based on a basic scaffold structure. What I need, is to edit several records with the boolean parameter publised on false. In moderate.html I'm getting the list of all unpublished…
Maay
  • 575
  • 9
  • 27
1
vote
1 answer

Ruby On Rails adding new page after scaffolding

I made a scaffold named b_page and I created a migration for bio I added a biopage.html.erb In controller: def biopage @b_pages = BPage.all end in routes.rb resources :b_pages do collection do get 'biopage' end end in…
J.Danely
  • 37
  • 5
1
vote
1 answer

Grails scaffolding inheritance

I have some Domain classes inheriting from a base class. However when I generate the scaffolding, the view does not contain any elements of the base class. The behaviour is the same regardless of table per hierarchy (default), or table per…
khylo
  • 4,430
  • 3
  • 29
  • 24
1
vote
1 answer

How can I plot p-values for SNPs that are spread across thousands of scaffolds on a single continuous axis?

I have association mapping derived P-values for SNPs that are scattered across thousands of scaffolds in a non-model organism. I would like plot the P-value of each SNP on a Manhattan-style plot. I do not care about the order of the scaffolds, but I…
Joe_McGirr
  • 13
  • 2
1
vote
1 answer

Fields Plugin - Grails table

I'm using fields plugins for grails and have a problem, when i scaffolding a domain class with an List of Strings as atribute class is showing like org.grails.datastore.mapping.dirty.checking.DirtyCheckingList class List view Here is my domain…
1
vote
1 answer

Could not create scaffold in rails 4.1.10

The options for rails is being displayed I am new to rails. I went through a tutorial and it generated a scaffold. I tried the same as shown in the picture but could not generate it.
1
vote
1 answer

Can you use dynamic finders or grouping tables via scaffold in Grails?

I'm working on a very, very quick and dirty application using almost entirely scaffold to do it. This is only for internal use, and it's just to replace a spreadsheet, so while I know that I shouldn't rely on scaffolds for real production use, I…
agartzke
  • 3,885
  • 6
  • 24
  • 17
1
vote
0 answers

Cakephp $scaffold doesn't display associated models

Help me please, I'm desperate! I have this schema: CREATE TABLE `baskets` ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, `name` varchar(20) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE `apples` ( id INT UNSIGNED AUTO_INCREMENT PRIMARY…
1
vote
1 answer

Rails generate scaffold error message

i'm having trouble generating scaffolding in my rails app:rails generate scaffold User name: string email:string dyld: lazy symbol binding failed: Symbol not found: _rb_str_new_static Referenced from:…
1
vote
1 answer

rails generate scaffold User name:string email:string

Whilst doing https://www.railstutorial.org/book/toy_app tutorial in section 2.2 where I had to write: $ rails generate scaffold User name:string email:string, I got some…
necr0
  • 11
  • 3
1
vote
2 answers

Index display order

I have a search form that returns an array of ids in a random order, depending of which element has more key words in the search. In the index they appear ordered by the smallest id. For example: def search ids = [13,8,2,4,7] items.where("id…
fr3d0
  • 225
  • 1
  • 12
1
vote
3 answers

A lot of scaffold with similar layout and controller in rails

i have a lot of scaffold and all of them are similar in views and controller. my problem is that Every time I generate a new scaffold had to change views and controller, Repeated changes :( Can I generate a new scaffold with new controller and views…
Zakaria
  • 983
  • 15
  • 24
1
vote
2 answers

Rails : Scaffold works for the first, but not for the second table

I am using aptana radrails empty rail project : scaffold Article titre:string body:text categorie_id:integer ordre:integer Migrate -> it works fine scaffold Categorie titre:string ordre:integer It generate the files but when i access…
Syl
  • 3,719
  • 6
  • 35
  • 59
1
vote
1 answer

Ruby on Rails Scaffold not displaying

I have created a scaffold to create a weekly log with this migration: class CreateLoggs < ActiveRecord::Migration def change create_table :loggs do |t| t.string :Name t.string :Date t.string :Time t.text…
Mohammed
  • 555
  • 1
  • 6
  • 19