Re: [Rails] has_and_belongs_to_many question

2014-01-26 Thread Martin Sloan
an use certain constructs, which is why I'm picking on this particular example. Although I might not use the dumb join often, it could happen. BR On Sunday, January 26, 2014 1:26:28 PM UTC-5, Walter Lee Davis wrote: > > > On Jan 25, 2014, at 11:45 PM, Martin Sloan wrote: >

[Rails] Re: has_and_belongs_to_many question

2014-01-25 Thread Martin Sloan
ssible. If the t.references should work, I'm happy to know that at least. I'll go back and run through another test to see if it gets the same results. Thanks On Saturday, January 25, 2014 8:59:30 AM UTC-5, Frederick Cheung wrote: > > On Friday, January 24, 2014 7:25:02 PM UTC+1,

Re: [Rails] has_and_belongs_to_many question

2014-01-25 Thread Martin Sloan
le the articles and categories tables are 'meeting up' at the articles_categories table and not 'going through' to reference another table. Thanks On Friday, January 24, 2014 4:39:28 PM UTC-5, Blaine LaFreniere wrote: > > > On 1/24/14, 11:25 AM, Martin Sloan wrote:

[Rails] has_and_belongs_to_many question

2014-01-24 Thread Martin Sloan
Hello, I'm new to Ruby/Rails and going through 'Beginning Rails 4'. In chapter 6 it has me create a join table for an articles and categories table (articles_categories). In the migrate file I've entered this code from the book: class CreateArticlesCategories < ActiveRecord::Migration def