Large credit goes out to The Rails Diary for helping me get the tags going on this site.
I wanted a many to many relationship between the aritcles and tags so that the tags wouldn't be duplicated in the database. The Has and Belongs To Many relationship (HaBTM) in Rails is what I used, with a link table to contain the ID's from the Articles and Tags tables.
For a full tutorial i'd check out the 'Tagging and HaBTM Relationships' article on the Rails Diary. Keep in mind a follow up article was written called 'The Redux' that is definitely worth a read as well.
About Paul
Paul works for Kyan web design agency in Surrey, UK as a Ruby on Rails developer.
Follow Paul on Twitter
Email: paulsturgess [at] gmail.com
Comments...
Wanna see whether u used ajax in ur blog
Test_user at 30 Aug 10 at 07:15
Got something to say?