Is there any way to explicitly set the id of an fixture entry? i
tried adding id: 1 to the attributes list in the .yml file, but it
seems to get ignored.
example .yml file:
default_user:
id: 1
name: Default User
otherfield: stuff
nextuser:
etc..
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Hi Ivan, Ivan Von Girderboot wrote:> > Is there any way to explicitly set the id of an fixture entry? i > tried adding id: 1 to the attributes list in the .yml file, but it > seems to get ignored.What do you mean ''get ignored''? What happens that makes you think so? Best regards, Bill --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hey Ivan, could you provide the actual message that you''re seeing and any additional relevant details so that we can better assist you? Thanks in advance, -Conrad On 8/13/07, Bill Walton <bill.walton-xwVYE8SWAR3R7s880joybQ@public.gmane.org> wrote:> > > Hi Ivan, > > Ivan Von Girderboot wrote: > > > > Is there any way to explicitly set the id of an fixture entry? i > > tried adding id: 1 to the attributes list in the .yml file, but it > > seems to get ignored. > > What do you mean ''get ignored''? What happens that makes you think so? > > Best regards, > Bill > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---