This is (usually) a good link for "created_by" capabilities:
http://wiki.rubyonrails.org/rails/pages/Howto+Add+created_by+and+updated_by
However it''s down - google cache to the rescue:
http://72.14.253.104/search?q=cache:5PvfMB1Z8EcJ:wiki.rubyonrails.org/rails/pages/Howto%2BAdd%2Bcreated_by%2Band%2Bupdated_by+ruby+on+rails+created_by&hl=en&ct=clnk&cd=1&gl=us&client=firefox-a
m
On 9/5/07, Graham Dawe
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
>
> Hi,
>
> Pretty much brand new to rails and am doing my first project with it.
>
> I have created 3 tables. users, clubs and clubs_users.
>
> I have the join table (clubs_users) gathering the user_id and club_id -
> as it should. The thing I am trying to do is, on the users account page,
> display all the clubs that they have created by referencing the
user''s
> id in the join table.
>
> I just can''t work out the syntax to do that. I realise it is a
really
> simple task. Hopefully someone can shed some light on it for me?
>
> Thanks guys,
>
> 3quid
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---