Ask A Question

Notifications

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):

Reply

Have you added this to your class?

  extend Forwardable
Reply

Yes. Still having the same error..

Reply

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

Reply

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):

Reply
Join the discussion
Create an account Log in

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

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

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