Forum: Ruby on Rails [ANN] PluginAWeek: fixture_references - Clean up your fixtur

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
45f0a9e50c449a18f81bebcb6ff34543?d=identicon&s=25 Aaron Pfeifer (obrie572)
on 2007-04-08 00:00
(Received via mailing list)
Hey all,

Just announcing a new plugin...

fixture_references - Adds support for referencing external fixtures
(by name) from within a fixture definition.

Example:

departments.yml:
<%
fixtures :employees
id = 0
%>

packaging:
  id: <%= id += 1 %>
  name: Packaging
  manager_id: <%= employees(:bob)['id'] %>

Wiki
http://wiki.pluginaweek.org/Fixture_references

Announcement
http://www.pluginaweek.org/2007/04/07/14-fix-your-...

Source
http://svn.pluginaweek.org/trunk/plugins/active_re...

Development
http://dev.pluginaweek.org/browser/trunk/plugins/a...
This topic is locked and can not be replied to.