You can add data via Rails models, like
User.create({ <your attributes for user goes there })
Just use rails code inside seed.rb to generate whatever you like and then
run rake task which is something like `rake db:seed`
2013/4/5 haxuan lac <[email protected]>
> Thanks Greg Akins
> I'm using MongoDB and in Mongodb has some table as:
> user,comment,photo,relationship
> And tables have ralationship(user relationship with photos..) ....
> Could you give me some advice for this problem?Thanks
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
Pagarbiai,
Gintautas
--
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].
For more options, visit https://groups.google.com/groups/opt_out.