November 2013
Intermediate to advanced
200 pages
4h 31m
English
If any of our applications are going to provide an interface for translations, we should make sure this interface is password-protected and that we can properly test its functionality. In this section, let’s look at Devise,[53] a full-stack authentication solution based on Rack, and take a deeper look at how we can use Capybara to test Rack applications.[54]
Devise is an interesting solution for authentication because it provides, in very few lines of code, a whole authentication stack, with sign-in, sign-up, password recovery, and more. It uses Warden to move the authentication handling to the middleware stack,[55] allowing any application, whether ...