Ruby on Rails Tuesday, March 28, 2017

On Tue, Mar 28, 2017 at 10:37 AM, tom <> wrote:

> model:
> belongs_to :ProvincialTaxAreaCode, class_name: "TaxArea", foreign_key:
> "ProvincialTaxAreaCode" #, primary_key: "ProvincialTaxAreaCode"
> ProvincialTaxAreaCode is a varchar(20)

?? A model "belongs_to" another model, not a string.

This might help:

Hassan Schroeder ------------------------
twitter: @hassan
Consulting Availability : Silicon Valley or remote

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment