I'm trying to run this command:
rails generate controller users --no-helper --no-assets --no-view-specs --no-controller-specs
to create the controller file only. But, I can't find a way to avoid view directory creation. How can I do this?
I'm trying to run this command:
rails generate controller users --no-helper --no-assets --no-view-specs --no-controller-specs
to create the controller file only. But, I can't find a way to avoid view directory creation. How can I do this?
Instead of running a generator it'd be easiest to create the
users_controller.rb
file yourself and populate it with