Hello, I'm trying to create that callback method. Here's what I have so
class Post < ActiveRecord::Base
acts_as_taggable #<-- for acts_as_taggable_on_steroids
validates_presence_of :body, :title, :tag_list
protected #<-- should this be protected?
@inputtag = :tag_list #<-- will this grab the input from the form?
@postspertag = post.tag_counts # maybe post.tag.count?
if @inputtag.exists? then
if @postspertag >= 20 then
# delete the oldest post of that tag needs to happen here
Does this look pretty close to what I described above? I'm trying to
understand whats going on here. The comments in the code include some of
my questions. I'm not sure if that's how I grab the input from the form,
and I'm also not sure if that's how I would delete the oldest post of
the given tag either...