Los rieles generan controlador sin vista, prueba
rails g controller folder1/folder2/controller_name --no-assets --no-controller-spes --no-view-specs --no-helper --no-template-engine --skip-test-framework
putta032