Displaying 1 result from an estimated 1 matches for "loadtags".
Did you mean:
loadings
2007 Jan 23
0
Inconsistency of data in controller and irb
I have a find query in a controller like this
def loadtags(product)
@tags =
Tagging.find_all_by_taggable_type_and_taggable_id(0,product.id)
puts product.id
puts @tags.collect{|x| x.id}
@tags.collect!{|x| x.id}.collect!{|x| Tag.find(x)}
puts @tags.collect{|x| x.name}
puts ''----------------------------''
@tags
end
and I te...