Colin Law wrote in post #1182803:
> On 12 Apr 2016 6:58 p.m., "David Williams" <li...@ruby-forum.com> wrote:
>>
>> shahroon ali wrote in post #1182801:
>> > belongs_to :states should be :state singular.
>> >
>> > On Tue, Apr 12, 2016 at 10:47 PM, David Williams <li...@ruby-forum.com>
>>
>> I fixed the typo, but it's still not working.
>>
>> undefined method `state_id' for #<Profile:0xd1b0b00>
>
> Is there a column of that name in the profiles table?
>
> Colin
>
>>
>> --
>> Posted via http://www.ruby-forum.com/.
>>
>> --

I thought the table automatically creates the _id extension by default.

My categories table is nearly identical to the state table.

categories
id
name
created_at
updated_at
description
slug

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/427484d2eb63ca497a1af43aa77134af%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to