Re: [Rails] Re: StatementInvalid error when adding a tagging system to a blog

2014-02-18 Thread Colin Law
On 18 February 2014 00:23, Nadia Vu wrote: > Yep. All fixed now. > I checked for the columns like you asked. And I found out that the > typo/pluralization in the Taggings.rb file named the column wrong > ie: > > belongs_to :posts > > made the column name posts_id as opposed to post_id > > > after

Re: [Rails] Re: StatementInvalid error when adding a tagging system to a blog

2014-02-17 Thread Nadia Vu
Yep. All fixed now. I checked for the columns like you asked. And I found out that the typo/pluralization in the Taggings.rb file named the column wrong ie: belongs_to :posts made the column name posts_id as opposed to post_id after fixing the typo, I rolled back the migration, and ran the migr

Re: [Rails] Re: StatementInvalid error when adding a tagging system to a blog

2014-02-17 Thread Colin Law
On 17 February 2014 12:13, Nadia Vu wrote: > Hi, thank you for that. > I have made that change. From > > belongs_to :tag > belongs_to :posts > > to > > belongs_to :tag > belongs_to :post > > > > However. I am still getting the same error. > Looking at many similar open stackoverflow answers and qu

Re: [Rails] Re: StatementInvalid error when adding a tagging system to a blog

2014-02-17 Thread Nadia Vu
Hi, thank you for that. I have made that change. From belongs_to :tag belongs_to :posts to belongs_to :tag belongs_to :post However. I am still getting the same error. Looking at many similar open stackoverflow answers and questions I honestly thought the pluralization was going to fit it. Bu

[Rails] Re: StatementInvalid error when adding a tagging system to a blog

2014-02-17 Thread Sridhar Vedula
It is belongs_to :post --- not posts On Thursday, 13 February 2014 12:27:48 UTC+5:30, Nadia Vu wrote: > > Hi there, I'm very new to RoR please be kind. > > I wasn't sure where to go but I was hoping I could find help here after > days of hair pulling. Stackoverflow was not successful.