Ask A Question


You’re not receiving notifications from this thread.

NoMethodError (undefined method `def_delegators' for ChatroomsDatatable:Class):

Victor Nizeyimana asked in Ruby

I have this error: NoMethodError (undefined method `def_delegators' for ChatroomsDatatable:Class):


Have you added this to your class?

  extend Forwardable

Yes. Still having the same error..


You'll probably have to share some code because there's not information to help you right now.


It is working now.

Ough, next error 💩;
Completed 500 Internal Server Error in 14754ms (ActiveRecord: 17.1ms)

NameError (undefined local variable or method `fetch_records' for #ChatroomsDatatable:0x00007f9bd1ea22d8):

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 83,770+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.