I can’t seem to use ActionView::Helpers::PrototypeHelpers from a
controller - specifically, I’m trying to use the link_to_remote helper
to create an Ajax link from within a controller function called from a
previous link_to_remote call.
The error is:
undefined method `link_to_remote’ for #MatchController:0x35e3370
If I try to import the PrototypeHelpers module, instead I get:
undefined method `options_for_javascript’ for
#MatchController:0x35f94f4
Any thoughts?
Thanks,
ben