سؤال

I am building a library management app in rails3.2. I am trying to generate book names for testing purposes. Is it possible to generate such book names using faker gem?

هل كانت مفيدة؟

المحلول

Let's post it as an answer:

Faker::Lorem.words(number_of_words)

adjust number_of_words to what you desire.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top