Topic: Joining two tables... Help...

I have two different photo tables, photos and tsf_photos im trying to join them by year to view on a 2012 page. The tables both have a year column and basically all the same columns and Im having trouble trying to figure this out, its seems like it is so easy maybe i'm over thinking it. I have tried the has_many and has_many :trough it's not working maybe im doing it wrong, Can someone help me solve this problem? Thank You!!!

Re: Joining two tables... Help...

I think what you need is a JOIN or INCLUDE sql statement. There is a railscast that goes over when/how to use each: http://railscasts.com/episodes/181-include-vs-joins

Change is a vector. You can have all the change in the world, but if it doesn't go in the right direction, what good is it? | techonamission.com