The action 'load' could not be found for Widget #47

Closed
atambo opened this Issue Oct 25, 2011 · 3 comments

Projects

None yet

3 participants

@atambo

I'm trying to make an AjaxWidget class that contains responds_to_event :load and the load action. I then make some other widgets that inherit from that AjaxWidget. Then when I try to render the widgets load action I get:

The action 'load' could not be found for Widget

@apotonick
Owner

Could you setup a minimal test case in widget_test.rb? You should use AbstractController::Base#action_methods to assert.

@atambo

Actually the problem is that load must be a special method of somekind, when I changed from responds_to_event :load to responds_to_event :load_content it worked fine.

@kuraga

@atambo load is Kernel#load method: http://www.ruby-doc.org/core-1.9.3/Kernel.html#method-i-load
@apotonick I think should be closed

@apotonick apotonick closed this Apr 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment