Skip to content


statedigital edited this page · 9 revisions
Clone this wiki locally

Welcome to the BetterLorem wiki!

Design Notes

The overall design was intended to be as small of an invocation as possible -- hence, the 1-character method names (.w, .c, .p) and optional parameters. For this reason I did not include a hash of parameters, as well. Just a simple method call.


If you are using BetterLorem with FactoryGirl, be sure to call BetterLorem in a lazy attribute block. Otherwise, your fields will receive the same string for every record.

   factory :content do
     title { BetterLorem.w(5) }
     text { BetterLorem.p(5) }
Something went wrong with that request. Please try again.