Displaying 20 results from an estimated 40000 matches similar to: "Generate scaffold should create tests, discuss"
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 Jun 07
2
script/generate scaffold pluralizes class names
Hi everyone,
I''m a rails & ruby nuby, and this is my first post to the list.
Here''s my environment in case it helps diagnose my problem:
Ruby version
1.8.4 (powerpc-darwin8.6.0)
RubyGems version
0.8.11
Rails version
1.1.2
Active Record version
1.14.2
Action Pack version
1.12.1
Action Web Service version
1.1.2
Action Mailer version
1.2.1
Active Support version
1.3.1
I did
2008 Feb 21
1
Creating incorrect plurals when generating scaffold
Preface: I''m trying to find my way through the "Build Your Own Ruby on
Rails Web Application" book. I''m completely new to programming and am
having a hard time figuring out the differences between rails 2.0.2 and
what''s in the book so please forgive me if this is a stupid question.
I''m confused because I finally thought I''d figured out the
2006 Mar 03
0
error running generate scaffold - doesn''t see table which is there
Hi
I''m trying to get some basic stuff working from the "Agile Web Dev with ROR"
book - chapter 6 "Create the Maintenance App". (On linux, mysql 4.1, ruby
1.8.4)
I have the depot_development db created, and teh "products" table definitely
exists.
The user name and pw are correct in database.yml
But I get this:
<snip>
daniel@roomatthetop:~/work/demo$
2009 Apr 12
0
Heroku Garden - reversing or changing a 'generate scaffold' command
In Heroku Garden, is there a way of reversing or changing a ''generate
scaffold'' command?
I often find I need to make changes to the scaffolded application but
I do not know how to.
''script/destroy scaffold Modelname'' from the console doesn''t seem to
work.
For example, I generated a Product scaffold in Heroku Garden.
When I try to destroy it using the
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/
2006 Aug 13
0
Problem generating scaffold using modules
I am trying to create an Admin module that has multiple controllers. For
each of the controllers, I would like to use scaffolding to generate the
initial models, views, and controllers.
I created the admin controller using "generate controller Admin index".
This created app/controllers/admin_controller.rb and
app/views/admin/index.rhtml.
When I point my browser to localhost/admin,
2006 Apr 24
3
quick q on script/generate scaffold
I want a scaffold to manager both products and users. To get the
products scaffold I used
script/generate scaffold Product Admin
if I use,
script/generate scaffold User Admin
will it overwrite my product admin controller? Would I be better off
doing
script/generate scaffold User User_Admin or something?
--
Posted via http://www.ruby-forum.com/.
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:
2006 May 05
0
Bad file descriptor during scaffold generation
Hi all,
Ruby 1.8.4 (latest one click)
Rails 1.1.2
Windows XP Pro, SP2
When I try to generate scaffolding I get the following error:
C:\eclipse\workspace\ns_hardware>ruby script/generate scaffold User
Computer
exists app/controllers/
exists app/helpers/
exists app/views/computer
exists test/functional/
dependency model
exists app/models/
exists
2006 Jan 05
0
Re: html generated from scaffold
On Jan 5, 2006, at 9:02 AM, Jim wrote:
>
> Question 1: In a scaffold-generated view, wouldn''t it be better to
> generate more user friendly rhtml and code? I mean, it generates a
> loop
> that goes through each column in the database table and generates html
> table columns from these. I''m sure it''s very efficient and has
> hyper-ruby-coolness,
2006 Mar 29
4
Scaffold generator: create vs. new
Can anyone supply me with a simple, succinct explanation of what the
difference is between the "new" controller and the "create" controller
that the scaffold generator produces?
I run:
> script/generate scaffold modelname controllername
And now I need to do some work inside the controllername.rb file. For
example, pulling a list from another database table to supply
2005 Aug 08
7
Problems with ./scripts/generate scaffold
Hi all,
I''m new to rails after having used perl for most of these things, and am
trying to get my head around the generate script for a project playing
around
with.
If I do:
./scripts/generate controller Device
I get app/controllers/device_controller.rb
where I can then add:
scaffold :device
However, if I want to actually generate the scaffolding so I can make
some changes:
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 Apr 11
0
Problem using generate/scaffold and FireRuby
Hi to all,
I am trying to use "ruby script/generate scaffold product". I always get
the message "uninitialized constant CHARACTER_SET". I have a products
table in a Firebird database called depot_development.fdb. Here is my
config file :
> common: &common
> adapter: firebird
> host: localhost
> username: SYSDBA
> password: masterkey
>
2006 Mar 23
6
easy scaffold question(s)
I''m doing very well with the Hibbs Rolling on Rails tutorial. I have an
easy question for my personal notes. I''m coming up with a simple framework
of steps for creating a basic database. It includes the following maxims to
make original app creation easy:
app_name = MySQL database name
SQL_tablename = model_name
model_name = controller-name
Is this going to work for getting
2006 Sep 06
1
Changing Scaffold
Hi,
I am starting a project in rails and I wish to change scaffolding.
I''ve already done some changes like prepare all texts for locale. Now
I am wishing to change the way it generates the _form partial. Could
someone give some guideline so I can study such thing?
I saw "template_for_inclusion" in form.rhtml but couldn''t find out
how to change it.
Being more
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 Mar 03
2
newbie scaffold question
I''ve got a database with several tables. I''d like to create scaffolding
for separate CRUD interfaces for several of these tables. I''m hoping
that the scaffold generator can create the CRUD code for all these
tables in ONE controller, but I don''t know how to tell it to do that, if
it can.
Can anyone verify if this is possible?
Thanks,
David
--
Posted via
2006 Jun 21
0
Scaffold error
Hoping someone call tell me what I''ve done wrong.
I was attempting to create a "static" scaffold (already have the
dynamic one) and received an error message:
"error Before updating scaffolding from new DB schema, try creating a
table for your model (Company)"
I already created a scaffold for Company (class CompanyController). I
want to create some better views.