Rails scaffold without the css file?

Brett picture Brett · May 11, 2011 · Viewed 14.4k times · Source

Is there a way to generate a scaffold in rails 3.0 so that scaffold.css does NOT get created? Something at the command line I can enter to skip that step?

Thanks

Answer

Dylan Markow picture Dylan Markow · May 11, 2011

There is a --no-stylesheets flag you can use:

rails g scaffold MyModel --no-stylesheets