Search code examples
ruby-on-railscode-organization

Where do I put back-end service proxies in Rails?


My controller needs to talk to a back-end service via HTTParty. Where would you put that service proxy class?

I was thinking I would create an /app/services folder for this, but I was wondering if there was something more idiomatically appropriate?


Solution

  • I put mine in app/models, but app/services seems appropriate as well if you prefer.