On 18 October 2011 15:59, prasetya utama <[email protected]> wrote:

Please don't top post, it makes it difficult to follow the thread,
insert your reply at appropriate points in previous message.  Thanks.

> @colin : i haven't understand, can you explain how to make it. may be
> script for generate it like if i want generate controller (ruby
> script/generate ...)

Can you explain exactly what it is you are trying to generate.  You
said that you wanted the model, is it actually the complete scaffold
that you want?

I think you can use the scaffold generator and pass it the option
--skip-migration to stop it making a migration to create the database,
but you still have to pass the fields you are interested in.  I have
never done this however.

http://guides.rubyonrails.org/getting_started.html#getting-up-and-running-quickly-with-scaffolding
explains how to use the scaffold generator.

Colin

-- 
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