Using FactoryGirl to test Padrino web applications using Padrino and Sequel
Use the widespread FactoryGirl gem to test your controller code of Padrino web applications when you decided to use Sequel as your database helper library.
Use the widespread FactoryGirl gem to test your controller code of Padrino web applications when you decided to use Sequel as your database helper library.
Nearly every web appliation requires user authentication. This introduction should help you save the evening I just spent trying to figure out how to use the Warden authentication layer in Padrino web applications.
Test-driven development is not just another stupid hype. It makes you confident that your code works and avoids situations where you have to explain your clients why that old bug suddenly appeared again. That is especially true when writing web applications. This little snippet makes sure your tests run on a clean database.
How to use pagination over database models when using the Sequel database library with the Padrino web framework. The Padrino web project needs to use Sequel as the ORM/database component. So I assume that you find “:orm: sequel” in your .components file. Your database configuration must be set in config/database.rb. At the end of the …