Displaying 20 results from an estimated 20000 matches similar to: "Generate scaffold failing"
2006 Jan 26
3
Problems with simple scaffold code
Hi all,
I had scaffold generate some code on a brand new app the trace is here:
http://rafb.net/paste/results/H87GHC68.html
Could you point me to what problem needs to be fixed please as i''ve been 
banging my head against this for some time now?
The table is very simple and its called "user" with id, email, password 
fields. I''ve set pluralize_table_names to false
2006 May 21
8
Rails and Postgres
Hi, I''m new to Ruby on Rails and am having a little difficulty working 
through the ''Rolling with Ruby on Rails'' tutorial. Can anyone help?
I''m trying to get the cookbook application to work via a Postgresql db. 
But get the following error when trying to access 
http://127.0.0.1:3000/recipe/new
Errno::EINVAL in RecipeController#new
Invalid argument
2006 Jun 28
9
Scaffold Issue with Postgres
Hi guys,
I''ve been able to successfully install the postgres adapter for a remote 
database machine to get rails up. My machine is running on Fedora 2. 
Rails version 1.1.2. Is my yml config correct? I am getting this error 
when I execute script/generate scaffold service_contents content :
exists  app/controllers/
      exists  app/helpers/
      create  app/views/spiel
      exists 
2006 Apr 20
8
generate scaffold not generating views
Hi!
Sorry for the newbie question...
I''m following the depot example in AgileWebDevelopmentWithRails.
Stangelly, generating scaffolding using the command (page 53):
	./script/generate scaffold Product Admin
does not generate any .rhtml file, but just:
       exists  app/controllers/
       exists  app/helpers/
       exists  app/views/admin
       exists  test/functional/
  
2005 Dec 17
3
Can scaffold generate listboxes in views? I''ve been unsuccessful.
I''ve created several different Rails applications but I''m running  
into the same trouble with each one.  Lets say I create an app called  
Test.  I type ''rails test'' and it generates the directory for me.   
Now I edit my database.yml file.  Then I create a database with  
Postgresql by typing createdb test.  Now I go into Postgresql by  
typing ''psql
2006 May 03
6
Scaffold Generation Problem
Greetings all,
I''m sure there is probably a very obvious reason for the following 
problem.  However, after much hair pulling, I am just not seeing it yet. 
As you can see from the trace below, I am not able to complete scaffold 
generation due to some problem between rails and mysql.  I double 
checked MySQL to make sure both my Ruby user and Root user have full 
rights to the database.
2005 Oct 25
2
generate scaffold ignores controller parameter
Since I upgraded from Rails 0.13.1 to 0.14.1 "generate scaffold <Model>
<Controller>" doesn''t take any notice of the controller parameter. Anyone
else suffering from this? E.g.:
C:\Ruby\work\test>ruby script\generate scaffold User Admin
      exists  app/controllers/
      exists  app/helpers/
      create  app/views/users
      exists  test/functional/
 
2006 May 06
4
Scaffold Uses Wrong Host for MySQL user
I''m following the example Depot app in Agile Web Development with Rails.
The scaffold fails because it is not using the correct host for the 
user. Here is the error that the scaffold emits:
Access denied for user ''jimmy''@''%'' to database ''depot_development''
The MySql user ''jimmy'' was created with the host of
2006 Apr 20
1
generate scaffold not generating views
Hi!
Sorry for the newbie question...
I''m following the depot example in AgileWebDevelopmentWithRails.
Stangelly, generating scaffolding using the command (page 53):
	./script/generate scaffold Product Admin
does not generate any .rhtml file, but just:
       exists  app/controllers/
       exists  app/helpers/
       exists  app/views/admin
       exists  test/functional/
  
2006 Apr 03
18
newbie generate scaffold
Hi Guys
First time on the list and pretty new to the rails way of doing  
things, yup I know sorry.. another newbie!
anyway, apologies out of the way, this is the problem I am having...
I have purchased the "Agile Development with Rails" book and have  
just started running through the ''Depot'' demo application.
I have got to page 57...
I have my project files all
2006 Feb 28
10
Scaffold command, how and what may be wrong?
hi everyone. I am learning RoR and just recently purchase the agile wed
dev on rails. i am still at the beginning of the book trying to create
the scaffold for the depot_development database. Everytime i run the
generate scaffold products admin, i recieve the "before building the
scaffold, try to create a table for model products" etc...
a few questions:
1. How does ruby know that
2005 Dec 02
3
yaml Error When Trying to Generate Scaffold
Hello there,
I am a Ruby on Rails newbie, and have been reading the book, "Agile  
Web Development with Rails", by Dave Thomas.
Seem to be stuck on page 57, when trying to invoke "ruby script/ 
generate scaffold Product Admin"...
My depot/config/database.yml file''s contents are:
development:
   adapter: mysql
   database: depot_development
   socket:
2009 Feb 10
3
scaffold macro problem
Hello,
I am using Komodo Edit 5.0 for ROR. I have made the database by using
the macros in it. But when I make model using sacffold, I get error. The
details are given below:
C:/Ruby/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 22, col
2: `  password:'' (ArgumentError)
  from C:/Ruby/lib/ruby/1.8/yaml.rb:133:in `load''
  from
2006 Feb 26
17
please help: having problem with the scaffold commad, mysql.
i just recently purchase agile web dev book about ruby on rails and 
going through the whole project.  well i am now stuck on creating the 
scaffold. I have been messing with settings for awhile now. here is the 
error:
koloa@ubuntu:/var/www/depot$ ruby script/generate scaffold Product Admin
exists app/controllers/
exists app/helpers/
exists app/views/admin
exists test/functional/
dependency
2006 Jan 10
5
Oracle 10g Express - generate scaffold gives error
Hello,
I have Oracle XE installed.
I have a table USERS.
When I try to generate a scaffold it gives me this error.
I tried also with Mysql and it worked.
E:\radrails\projects\MPS>ruby script\generate scaffold user
      exists  app/controllers/
      exists  app/helpers/
      create  app/views/user
      exists  test/functional/
  dependency  model
      exists    app/models/
      exists   
2006 Mar 28
2
Problem with generating a scaffold with an Oracle DB
Hi all,
I have confgured my oracle application with the Oracle Express 
Production release database. This all is configured well and tested(I 
can see that he founds the database). However, when I generate a 
scaffold application there is no view for the CRUD functions created for 
the application.
Below is listed what is generated for me for a Products table:
E:\workdir\ruby\depot>ruby
2006 Feb 20
3
Scaffold NoMethodError on Mac
Hello All:
I am still somewhat new to Rails but have created a successful app on a 
Windows box and am venturing out for my first Mac Rails app. Being 
relatively new to Macs as well, I believe I have a good install of the 
latest versions (ruby, rails, mysql, webrick) but have hit two snags.
First - when I try to scaffold one of the controllers (i.e. 
localhost:3000/mycontroller/new) just to
2006 May 24
6
newbie question: missing template
Hi
I''m new to this forum and new to Rails so excuse me if this is a daft 
question.
I''m following the ONLamp.com tuturial and all has been well untill 
changing the template for the recipes.  I have followed the instructions 
and added this code to the controller:
class RecipeController < ApplicationController
	scaffold :recipe
	def list
	 @recipes = Recipe.find_all
	end
2006 Aug 17
6
NameError in AdminController#index building scaffold
I''m a pretty big newbie with ROR, but when following a tutorial I 
encounter an ugly error when building a scaffold.  Here is my 
environment
Dev system:
- Windows XP
- java version "1.5.0_06"
- MySQL java version "1.5.0_06"
- Ruby 1.8.4
- Ruby Gems 0.9.0
- Gem install mysql
   Successfully installed mysql-2.7.1-mswin32
   Installing ri documentation for
2006 Sep 26
1
Error while generating scaffold
Hello,
When I run the command:
"ruby script/generate scaffold Product Admin"
I receive the following error after the usual changed files info:
"Couldn''t find ''product'' generator"
The command is based on "Agile Web Application Development with Rails"
first edition on page: 57. Just to give some context to what I am
doing, I just created