I am using rails-api because I am doing all interactions with the rails app in json. Using rails-api eliminates all of the rendering code and keeps heroku happy from a memory usage point of view.
From one of the many posts I found discussing this problem (this one from StackOverflow):
The error above comes from the|require()| <https://github.com/rails/rails/blob/master/activesupport/lib/active_support/dependencies.rb#L225>method in>ActiveSupport::Dependencies::Loadable|being executed when calling
the bottom ofthis file <https://github.com/rails/strong_parameters/blob/master/lib/action_controller/parameters.rb#L148>with
The>rails-api|gem requires your app's|ApplicationController|extend|ActionController::API|in favor of>ActionController::Base|
The application controllers don't know anything about>ActionController::StrongParameters|because they're not extending the class|ActionController::StrongParameters|was included within. This is why the|require()|method call is not calling the implementation in>ActionController::StrongParameters|.
To tell>ActionController::API|about|ActionController::StrongParameters|is as simple as adding the following to a file in|config/initializers|.
This is one of the many "solutions" I tried that doesn't work for me.