Where do I place Ruby on Rails Generators?

Ruby on Rails generators are an easy way to build up a site. They lay down the ground work for you to hack with.

The most common generators used are the model, controller, and for some of you perhaps the scaffold generator.

But people tend to find the default generators to be a little…limiting. So they decide to create their own.

When I started creating my own generators, I ran into a slight problem, I didn’t know where to save them!

Save your generators in:

  • RAILS_ROOT/lib/generators
  • RAILS_ROOT/vendor/generators
  • ~/.rails/generators (as in your home directory)

Hope that helps new Ruby On Rails programmers :)

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>