Rails Routing: Advanced Constraints for User Authentication without Devise
Many times we mount engines and restrict access to admin users via Devise. In this post, I’ll show you how to do the same when using a different authentication mechanism.
Many times we mount engines and restrict access to admin users via Devise. In this post, I’ll show you how to do the same when using a different authentication mechanism.
Whenever we save data from one of our Rails models, each attribute is mapped one to one to a field in the database. These fields are generally of a simple type, like a string or an integer. However, it's also possible to save an entire data object in JSON format in a field. Let's see an example of how to do this from a Ruby on Rails application.
August 19 was Whyday, and to commemorate it, I decided to write a gem called activerecord-except.
You use a PaaS because you want all the underlying infrastructure and configuration of your application to be hidden from you. However, there are times when you are forced to look deeper into the stack. In this article I want to share how simple it is to run a patched version of Ruby on Heroku.