Using faker gem with rails to generate some fake data. When I use faker::lorem the output includes dashes in front of the string.
namespace :db do
desc "Fill database with sample data"
task populate: :environment do
7.times do |l|
line = Line.create!(sentence: Faker::Lorem.sentences(2))
end
end
end
Like:
---
- Odit consectetur perspiciatis delectus sunt quo est.
- Tempore excepturi soluta aliquam perferendis.
Any idea why this function returns the Lorem with dashes? Easiest way to strip them out?