I think i finally figured out what was wrong. I was missing require in my app.rb