Use rails generator to generate plugin or engine
Before I use enginx
to generate a rails engine, but after Rails 3.1 there is a new generator rails plugin new
to do the same thing now.
It will has a test/dummy
directory which used to test engine controller, model and view.