[Rails] Setting Primary Key (`id` field) with fixtures
by Ivan Von Girderboot other posts by this author
Aug 13 2007 1:49PM messages near this date
[Rails] New release of SCGI
|
[Rails] Question about :include_blank => true
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: Ta
lk" group.
To post to this group, send email to rubyonrails-talk@[...].com
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@[...].com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
|