I've just started a project and I've been having some basic doubts. Firstly,
I created my db schema using a db modeling tool. Then I generated the tables
according to that model. After I created the schema.rb. The database.yml is
ok and also the first migration. My doubt is: when I run *script/generate
scaffold Post* for example, it creates my view without any field, even if
all the tables are created and my migration before scaffolding has the
correct definition to the Post table. Instead of using the current
migration, the scaffold command creates a new one. Is there any way to run
scaffold and do not create a new migration without fields? I wouldn't like
to write down the schema of each table every time I wanted to use scaffold.

Second doubt: Can I run *script/generate model Post* without create a new
migration or write down the fields definition? I'd like to use what is on
the database and on the current migration (the whole schema)

Thanks in advance

-- 
*Rodrigo Felix*
Web Developer
SCJP

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to