When I type the following in my rails console it works. When I try it in the rails app, it says "wrong number of arguments (0 for 1)" I checked that inventory in my controller has an object via outputting the ID in the log. I type this in the rails console and it works

Re: Class method?

Sorry it took so long to get back. Im not sure how, but it was working the next day. Perhaps I worked to late. I'm still trying to reproduce the error I was getting the other night though to learn from it.