Topic: how to skip generating views while using rails g scaffold command ??

how to skip generating  views while using rails g scaffold command ??

i am tried :--
  rails g scaffold  --skip views
but it does not works.............

Re: how to skip generating views while using rails g scaffold command ??

Just generate separately model and/or controller without specifying views:

rails g model MyModel attr:type
rails g controller MyController

See more details at http://guides.rubyonrails.org/command_l … s-generate

Last edited by Javix (2012-12-03 08:34:00)