>
> Hi,
>
> As you probably know, acts_as_taggable has been depreciated in rails
> 2. Also, there are differences between the gem and the plugin. I've
> installed the plugin but I am unsure what I should change in the
> application to make the plugin work?
>
> Also, I've looked into: growing up your acts_as_taggable
> http://blog.evanweaver.com/articles/2007/01/13/growing-up-your-acts_as_taggable/
> ... but I'm experiencing problems because the application in the book
> uses foreign keys.
Could you elaborate on this a bit more? All belongs_to and habtm
relatioships use foreign keys, including the ones Evan describes in
the post.
> Would anyone have a solution to how I can make the application work
> again (with either solution)?
What's the problem you're having?
//jarkko
--
Jarkko Laine
http://jlaine.net
http://dotherightthing.com
http://www.railsecommerce.com
http://odesign.fi
On 24.7.2008, at 9.29, elle wrote:
> Hi Jarkko,
>
> I actually ended up using Acts as Taggable on Steroids. I eliminated
> the foreign keys and used what the plugin offers.
> http://agilewebdevelopment.com/plugins/acts_as_taggable_on_steroids
> And it works great -- almost. Got one or two more things to fix but I
> am sure this is more me than anything.
Great that you got it sorted out. I'm still curious about what you
mean by eliminating foreign keys, though. You can't build an
association between two tables in a relational database without
foreign keys — unless you meant explicit foreign key constraints at
the database level, of course.
Cheers,
Yeah, you could have just renamed the products_tags table to taggings
and add/edit fields. Or copy the data over inside the migration before
deleting the original table.
//jarkko