Questions tagged [scriptgenerate]
7 questions
22
votes
4 answers
Why does Ruby "script/generate" return "No such file or directory"?
I am having trouble using script/generate. I am following the tree based navigation tutorial, which says to use script/plugin install git://github.com/rails/acts_as_tree.git or script/generate nifty_layout.
I keep getting:
No such file or directory…

jyoseph
- 5,435
- 9
- 45
- 64
21
votes
5 answers
Where are the docs for Rails "script/generate model"?
I am running
ruby script/generate scaffold
or
ruby script/generate model
and I know the basic syntax, like
ruby script/generate scaffold Dude name:string face:boolean
but I do not know things like:
should names of variables have underscores or…

Dan Rosenstark
- 68,471
- 58
- 283
- 421
5
votes
2 answers
How do I exclude auto generated columns from SQL Server Generate Script Data Only?
SQL Server Generate Script does a great job of creating a script for the data in the tables using the Data Only option for 'Types of data to script' in the advanced option. However the script generated also includes all the identifiers such as…

dchitnis
- 83
- 1
- 5
2
votes
2 answers
Get all tables creation scripts from Oracle database
I have an Oracle db with a lot of tables and a lot of properties like: primary key,Unique key, Foreign key,Indexes, Privileges and partitions.
I need to create the same tables with the same properties in new Oracle db.
Is there a way to generate a…

Alan Mil
- 143
- 1
- 2
- 10
1
vote
3 answers
Ruby On Rails Scaffold LoadError
I am learning Ruby on Rails using a book I picked up called "Head First Rails" I am in the first chapter and it tells me to create my CRUD procedures using the following command:
ruby script/generate scaffold ticket name:string seat_id_seq:string…

Russ Bradberry
- 10,705
- 17
- 69
- 85
0
votes
3 answers
SQLServer 2005 Generate all INDEX as CREATE statement?
I have two database with same structures, but one of them is missing INDEXES (i think i've missed out), i mean the table didn't have any INDEXES yet.
I was plan to generate CREATE INDEX for the database which have indexes but can't found any method…

Dels
- 2,375
- 9
- 39
- 59
0
votes
2 answers
What is this error I'm getting when I try to generate a Ruby on Rails controller?
I've created controllers in the past successfully, but all of a sudden I'm getting a weird error. I'm doing this:
ruby script/generate controller Request
And am getting this error…

ben
- 29,229
- 42
- 124
- 179