Live without Devise: a simple Warden authentication service
Nowadays, almost every Rails project has authentication delivered by a powerful devise gem. But, in some circumstances using this gem may be just like shooting a fly with a cannon. For instance, you want to create a simple API that gives access to resources via the authorization access token sent...
Apiary Documentation with RSpec API Doc Generator
A solid and maintainable Rails Backend project, that plays an API role, should be based on a good quality code that implements a business logic. Automatic tests and documentation also play an important role. Building an API, covered by tests, makes it easy to expand, detect errors and eliminate future...
Multi-tenancy in Ruby on Rails - many tenants in one application
Ruby on Rails applications sometimes require an ability to supply the same business logic with separation of models data for a group of clients. This circumstance is also known as multi-tenancy. This way one user does not see other users' activities nor has access to their data. The most common...
AWS SNS - Mobile Push Notification Service for Ruby on Rails
AWS SNS - Mobile Push Notification Service for Ruby on Rails Why we need notification service in Rails? Ruby on Rails uses mainly HTTP (from v5 socket connections were added) - stateless protocol based on request-response pattern to communicate with frontend clients. Client sends request to the server and receives...