Ask A Question

Notifications

You’re not receiving notifications from this thread.

Getting NoMethodError while calling method from Model_name.rb

deepkhajanchi asked in Rails

I am testing a model class method from 'rails console' called "progress" which is inside class 'Okr' as 'Okr.progess'. But getting NoMethodError (undefined method progress' for Okr (call 'Okr.connection' to establish a connection):Class). It looks like console is not even fetching that method. I also tried establishing connection but after that getting NoMethodError (undefined methodprogress' for #Class:0x00007f4664104f30). Thank you in advance.

Reply
Join the discussion
Create an account Log in

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

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

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