Foreign keys in fixtures in rails 2.0
I'm having problems with my fixtures in Rails.

I have two models, a message and a user. The user model is generated from restful authentication. A message has a sender and a recipient, which are both users.

When I don't use the fixtures everything works fine. But when I try to use them in fixtures both are nil.

This is the messages fixtures file:

    first_message_for_quentin:
        title: First message
        body: This is your first message.
        recipient: quentin
        sender: aaron

quentin and aaron are the user fixtures which were generated by restful authentication.

Is there a way I can use the generated ids there or do I have to do it another way?

Foreign keys in fixtures in rails 2.0
===

I'm having problems with my fixtures in Rails.

I have two models, a message and a user. The user model is generated from restful authentication. A message has a sender and a recipient, which are both users.

When I don't use the fixtures everything works fine. But when I try to use them in fixtures both are nil.

This is the messages fixtures file:

    first_message_for_quentin:
        title: First message
        body: This is your first message.
        recipient: quentin
        sender: aaron

quentin and aaron are the user fixtures which were generated by restful authentication.

Is there a way I can use the generated ids there or do I have to do it another way?
