RailsCasts Pro episodes are now free!

Learn more or hide this

Drazen Mokic's Profile

GitHub User: drale2k

Site: twitter.com/drale2k

Comments by Drazen Mokic

Avatar

I don't see the point when i would ever use this over RABL or Jbuilder. It looks to me like a way if you need to hack out something quickly but when it gets more complex would switch to one of the both mentioned above.

Avatar

If every API users has a API_KEY or Token, you can have a column like 'requests_count' and increment it with each request. When you reach lets say 500, you can return a 500 or something and have rake tasks reset the count after 24 hours or so.