Questions tagged [scaffold]

429 questions
0
votes
1 answer

dart-polymer scaffold. main() called for each shadowdom. Top level DART variables lose value

I'm a newbie to DART. Spent many years doing OO (PDC) Prolog. I have a beginner's knowledge of HTML5 and CSS3. I've started playing around with Polymer paper elements, and (sampler-scaffold). I have (paper-item)s as a menu on the left, and each…
Lymp
  • 933
  • 1
  • 7
  • 20
0
votes
0 answers

Auto-generated rspecs

I am working on an existing RoR app which was written a few years ago. It's testers were less than satisfying so the whole /spec directory was removed and I have to write new rspecs. I have seen somewhere that it is possible to generate non-blank…
Spätzle
  • 709
  • 10
  • 20
0
votes
1 answer

How to show beautiful error messages with twitter bootstrap by rails framework?

If I use Rails 4 to have a test: rails g scaffold post title description:text There will generate the form source: <%= form_for(@post) do |f| %> <% if @post.errors.any? %>

<%=…

j-zhang
  • 693
  • 1
  • 8
  • 17
0
votes
2 answers

What's with bad function call in view generated via scaffold?

I've scaffolded Things element: script/generate scaffold wip/thing name:string and got some invalid function call in views, like: <%= link_to 'Edit', edit_thing_path(thing) %> Which raise this error: ActionView::TemplateError (undefined…
Greg
  • 5,862
  • 1
  • 25
  • 52
0
votes
1 answer

Scaffolding in Cakephp allows Parent_id to be selected, but baked controllers show an empty select box

When I use the Tree behavior and scaffold my controller, my parent_id shows up in the select box on the add view; however, when I bake my controller and views, I end up with an empty select box for parent_id. I know it is something simple, but I…
0
votes
1 answer

Generate form elements with scaffold_controller in Ruby on Rails

I have already a model in my Ruby on Rails aplication. I want to generate the Controller and Views. Using the scaffold_controller option i get the files but the forms of the view dosnt contain the html input forms. I can generate them using the…
Cesar
  • 1,610
  • 2
  • 16
  • 42
0
votes
1 answer

Phalcon: how to customize scaffold to generate a divs instead of a table?

I'm using the scaffold generator of phalcon it generates table, below is an example of the generated code:
0
votes
2 answers

Delete a resource created with scaffold in Ruby on Rails

How can I delete a resource created with the scaffold command in Ruby on Rails? If I try to overwrite it, I have problems to migrate because the table already exists!
Seba92
  • 446
  • 1
  • 4
  • 17
0
votes
1 answer

Ruby scaffold undefined method 'configure'

Hi I was following exactly the steps to create a demo application for Rubys on windows. but when I try to generate the tables using the scaffold command, rails generate scaffold User name:string email:string I got the following…
Ji yong
  • 433
  • 2
  • 5
  • 12
0
votes
1 answer

Scaffolding Rails4 Empty Controller

I'm using multiple scaffolding in my testapp project. i have created 1st scaffold like this: rails g Post title desc:text it was successful and created all relevant files and controller as well. but when i made another scaffold : testapp$ rails g…
0
votes
1 answer

How to access a table which created by a new "scaffold" in rails?

I use rails g scaffold to create a new group of controller, model and view, which allows users to input a int number. They can only edit the only number but not create a new one or delete it. rails g scaffold number numa:integer I would like to…
user2049259
  • 533
  • 2
  • 6
  • 13
0
votes
0 answers

rails generate scaffold throws error

When i run "rails generate scaffold User name:string email:string" throws below error, thank you in advance. /Users/mithunraj.nanjegowda/projects/ruby/rails_projects/demo_app/config/environments/development.rb:1:in `': undefined…
rajn
  • 180
  • 2
  • 13
0
votes
1 answer

Subsonic scaffold many-to-many controls are disappearing

I'm using the SubSonic scaffold control with auto-generating many to many controls. On Page_Load I'm setting the table name scfMain.TableName =…
Michael Pardo
  • 2,590
  • 3
  • 24
  • 33
0
votes
1 answer

using bootstrap for rails 4 scaffold form

I'm working on styling up my scaffold form page in my rails 4 application and was wondering if anyone had some tips. Is it possible to easily make a bootstrap form and change some fields for the f.select , f.date_field, f.text_field parts of a…
parameter
  • 894
  • 2
  • 18
  • 35
0
votes
4 answers

Ran code generator: rails generate scaffold post title:string body:text and am getting error message

I'm getting this error message when I run the above code generator: (I'm just a beginner) invoke active_record Another migration is already named create_posts..... Use --force to remove the old migration file What do I type into the terminal window…
user3502289
  • 5
  • 1
  • 3