You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The gem causes Ruby on Rails projects with version 7.1.0 or higher to break for all routes if the setting config.action_controller.raise_on_missing_callback_actions = true is present in an environment (default for development and test).
To Reproduce
Steps to reproduce the behavior:
run rails _7.1.3.4_ new example
cd example
add gem 'honeypot-captcha' to Gemfile
run bundle install
run bin/rails s
go to localhost:3000
see error below
Unknown action
The create action could not be found for the :protect_from_spam
callback on Rails::WelcomeController, but it is listed in the controller's
:only option.
Raising for missing callback actions is a new default in Rails 7.1, if you'd
like to turn this off you can delete the option from the environment configurations
or set `config.action_controller.raise_on_missing_callback_actions` to `false`.
Expected behavior
The gem should work out of the box with a RoR application. I didn't find a configuration option or documentation to avoid this error except disable the configuration in Rails.
Screenshots
Screenshot with the error
Desktop:
OS: Ubuntu 22.04
Browser Firefox
Version 127.0.1
Smartphone:
Not applicable
Additional context
The setting can be found in the Rails project in config/environments/development.rb
The text was updated successfully, but these errors were encountered:
Describe the bug
The gem causes Ruby on Rails projects with version 7.1.0 or higher to break for all routes if the setting
config.action_controller.raise_on_missing_callback_actions = true
is present in an environment (default for development and test).To Reproduce
Steps to reproduce the behavior:
rails _7.1.3.4_ new example
example
gem 'honeypot-captcha'
toGemfile
bundle install
bin/rails s
localhost:3000
Expected behavior
The gem should work out of the box with a RoR application. I didn't find a configuration option or documentation to avoid this error except disable the configuration in Rails.
Screenshots
Screenshot with the error
Desktop:
Smartphone:
Additional context
config/environments/development.rb
The text was updated successfully, but these errors were encountered: