On 1 August 2017 at 07:17, K S <[email protected]> wrote:
> Thanks for the info but this is not the case. I already have a blog, with
> comments etc. My main question is: how to use 'faker' gem to populate data
> for blog title and comment body? What code should I put in seed.rb?

OK, you say you already have a blog. Let us take this one step at a
time.  You say you want to set the blog title. Assuming that you have
the blog in a variable called theblog then you can set the title using
theblog.title = Faker:whatever

What is it that you don't understand with that?

By the way I would prefer it if you did not top post, it makes it much
easier for me to follow the thread if you insert your reply at
appropriate points in the previous message. Thanks.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuwmyjZfLPG3WNnCJeLPvCgnGs26NhK2qFgrDLKwpS-NA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to