Topic Moving

I'm trying to work out how to move topics from one forum to another.
All my code is located here: http://github.com/Radar/rboard/tree/
master

It just doesn't seem to be updating last_post_id and
last_post_forum_id correctly (or eloquently) when moving a post. The
method in question is move! in the topic model. Is there a "better"
way to do it?

update_last_post in forum.rb should be doing self.last_post= and
self.last_post_forum= (right now you're just setting a local variable)

Fred

Wow I can't believe it was that easy.

Wow I can't believe it was that easy.

Surprisingly easy mistake to make (and perhaps why some people get in
the habit of writing self when they don't need to)

Fred

The code does not appear to be updating the last_post_id and
last_post_forum_id when moving topics out of sub-forums. The idea is
that if a post is the real last post in a sub-forum AND it's parent(s)
it should update them all with that information. Am I doing this the
hard way?