Padrino

Clearing RSpec test databases with Padrino and Sequel

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.

Sequel model pagination with Padrino

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 …

Sequel model pagination with Padrino Read More »

Scroll to Top