Wouter wrote: > Any idea how I can do that? How can i use that? @shouts = Shout.find(:all, :include => [:place, :profile]) @photos = Photo.find(:all, :include => [:place, :profile])
You can also use a :joins in the model if you tie it all together properly. This is just a very basic example. Test it out in the rails console then call the data back.. shouts = Shout.find(:all, :include => [:place, :profile]) shouts.place shouts.profile etc... -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---