Skip to content
This repository

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.

FactoryGirl

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
     name
     title { BetterLorem.w(5) }
     text { BetterLorem.p(5) }
   end
Something went wrong with that request. Please try again.