eggie5 wrote:> I have a model called role which has many rights. However, I''m
having
> trouble expressing this in my text fixture:
>
> administrators:
> id: 1
> name: Administrators
> rights: How do I add an item to the rights array here?
You need to create the rights in a fixture on it''s own and then set the
administrator_id in that fixture. Just like you would if you were
creating the rows in the database by hand.
--
Cheers,
- Jacob Atzen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---