There’s some cut-and-paste involved from previous, sorta working
versions. I’m looking at line #29, and don’t understand it.
What does tag.name mean? The current Tag object? the name field for
that object? Something else?
Didn’t you write this to begin with ?
tag.name means call the name method on tag, and the line above says
you’re iterating through the tags of the feed.
On Wed, 16 Jan 2008 10:17:39 +0000, Frederick C. wrote:
Didn’t you write this to begin with ? tag.name means call the name
method on tag, and the line above says you’re iterating through the tags
of the feed.
Fred
Well, there was copy/paste from a dummies book (which, of course, was
deprecated) combined with the fact that I’ve gone back and forth with
subversion revisions due to mucking up a naming convention…
I wish that I’d simply written the view, but that probably wasn’t the
case
On Wed, 16 Jan 2008 11:47:50 +0100, Rita Amritkar wrote:
tag object doesn’t have attribute called name and it doesn’t have name
method so you must be getting error you might replace tag.name with
tag.tag
Yes, this now displays everything correctly, in that I can see which
tags
have been associated with a specific feed. That view for the
has_many_through is working.
tag object doesn’t have attribute called name and it doesn’t have name
method so you must be getting error you might replace tag.name with
tag.tag
Yes, this now displays everything correctly, in that I can see which
tags have been associated with a specific feed. That view for the
has_many_through is working.
I forgot that I had installed a plug-in. Ok, my show does now display
the “add tag” button (but only if there are tags not associated with
that
feed.) However, clicking on the button results in:
ActiveRecord::HasManyThroughCantAssociateNewRecords in
FeedsController#add_some_tags
Cannot associate new records through ‘Feed#memberships’ on ‘#’. Both
records must have an id in order to create the has_many :through record
associating them.