Is there a way to generate a rails scaffold without the views?

Ibrahim Muhammad picture Ibrahim Muhammad · Mar 12, 2012 · Viewed 13.2k times · Source

Is there a way to generate a rails scaffold without the views, there has to be a better way then generating the scaffold and deleting the views and the view specs.

Answer

drexin picture drexin · Mar 12, 2012

You can use rails g resource Foo bar:text