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
After upgrading from Rails 4.2.x to 5.0.x, I've encountered this problem with make_resourceful:
make_resourceful
ActionController::RoutingError (undefined method `hidden_actions' for SitesController:Class): /home/nowaker/.rvm/gems/ruby-2.6.3/bundler/gems/make_resourceful-787e73272fe4/lib/resourceful/builder.rb:54:in `apply' /home/nowaker/.rvm/gems/ruby-2.6.3/bundler/gems/make_resourceful-787e73272fe4/lib/resourceful/maker.rb:69:in `make_resourceful' app/controllers/sites_controller.rb:5:in `<class:SitesController>'
The text was updated successfully, but these errors were encountered:
Uncommenting this line resolves the problem:
kontroller.hidden_actions.reject! &@ok_actions.method(:include?)
I suggest changing it to:
if kontroller.respond_to?(:hidden_actions) kontroller.hidden_actions.reject! &@ok_actions.method(:include?) end
This is because Rails 5+ no longer has a notion of "hidden actions".
Sorry, something went wrong.
#19
Fixed in #19
No branches or pull requests
After upgrading from Rails 4.2.x to 5.0.x, I've encountered this problem with
make_resourceful
:The text was updated successfully, but these errors were encountered: