goodwill | 17 May 04:46
Picon

Generator simple question: How to specify parameter?


I wonder if I have did something fishy here (probably I did...)
when I type:

script/generate scaffold model --skip_migration

It saids:
invalid option: --skip_migration

Perhaps some syntax I don't know on how to specify parameters for a
generator?
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Craig Demyanovich | 17 May 05:43
Picon
Gravatar

Re: Generator simple question: How to specify parameter?


Try --skip-migration, i.e., use a hyphen instead of an underscore.

In case you didn't know, you can run script/generate w/o arguments to
see what generators are installed, and you can run it with a generator
name, e.g., scaffold, to see what you can do with that generator.

Regards,
Craig

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane