You just need to add a before_save or after_save callback before_save :add_title_to_tag_list
def add_title_to_tag_list self.tag_list = tag_list + [title] end On Tue, Jun 29, 2010 at 5:12 AM, Edward Funger <[email protected]> wrote: > I'm sure this is probably a very simple answer but I'm just getting > acclimated with Rails. > I want to change the :title field so that the title is also added as a > tag to the post. How do I do that? > > -- > You received this message because you are subscribed to the Google Groups > "CommunityEngine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<communityengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/communityengine?hl=en. > > -- ------------------------------------------------------------- visit my blog at http://jimlabs.heroku.com -- You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/communityengine?hl=en.
