Similar to how :Einitializer with no arguments defaults to the routes file, :Econtroller with no arguments should default to ApplicationController. This seems like a reasonable default because AFAICT all Rails applications are generated with this as the default top-level controller (even with the --api option).
This PR has the side effect of creating application_controller.rb if it doesn't exist. That seems unexpected to me, but I couldn't figure out an implementation that doesn't do that.
Similar to how
:Einitializer
with no arguments defaults to the routes file,:Econtroller
with no arguments should default toApplicationController
. This seems like a reasonable default because AFAICT all Rails applications are generated with this as the default top-level controller (even with the--api
option).This PR has the side effect of creating
application_controller.rb
if it doesn't exist. That seems unexpected to me, but I couldn't figure out an implementation that doesn't do that.