0

How can you create multiple scaffolds at once at the rails command line?

so that these commands could be send at once

rails g scaffold person  name:string
rails g scaffold adress  street:string person:references
rails g scaffold website url:string person:references

Thank you

1 Answer 1

1

Generators are initialized from scripts/rails. You could specify your own generator which just chains generators, or use something like rake to invoke multiple commands, or use a shell script if you want them literally chained.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.