We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello.
Can you please tell me how I can currently use the Web UI section in a Rails application that runs in API mode?
I get an error:
undefined method `flash' for #<ActionDispatch::Request GET "http://localhost:3000/maintenance_tasks" for ::1>
Is it possible, by defining the operating mode of a Rails application, to remove the definition/use of these methods?
The text was updated successfully, but these errors were encountered:
Solution:
class Maintenance::Tasks::ApplicationController < ActionController::Base include ActionDispatch::Flash::RequestMethods end
MaintenanceTasks.parent_controller = "Maintenance::Tasks::ApplicationController"
Sorry, something went wrong.
If this is all it takes, we could support it out of the box.
Rack::MethodOverride
No branches or pull requests
Hello.
Can you please tell me how I can currently use the Web UI section in a Rails application that runs in API mode?
I get an error:
Is it possible, by defining the operating mode of a Rails application, to remove the definition/use of these methods?
The text was updated successfully, but these errors were encountered: