Ruby Quicktips Logo

Ruby Quicktips

Random Ruby and Rails tips.
This blog is dedicated to deliver short, interesting and practical tidbits of the Ruby language and Ruby on Rails framework. Read more...

Your submissions are more than welcome!
Mar 13 ’12

Pretend to generate

If you’re not sure what files a Rails Generator would create for you, just add the -p option (or --pretend) for a dry run:

rails generate model Blog -p

5 notes 0 comments

  1. remonegy reblogged this from rubyquicktips
  2. hackz0r reblogged this from rubyquicktips
  3. codetlan reblogged this from rubyquicktips
  4. rubyquicktips posted this

Comments

You can use HTML tags for formatting. Wrap code in <code> tags and multiple lines of code in <pre><code> tags.

blog comments powered by Disqus