All threads / Getting NoMethodError while calling method from Model_name.rb

Ask A Question


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.

Join the discussion

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.