Posts Tagged archiving
Most Recent Commit to Rblog
I have made quite a few commits here lately and most have been small minor things that don’t really effect much. I did make a couple of pretty meaningful changes and I wanted to go over them here a little bit.
Archiving System.
Rblog’s Archiving system is something that I’m kind of proud of mainly cause I came up with it all by myself. Now while it works it’s not exactly functioning the way I want. So what I did was make some modifications to it as to get it pointed in the right direction.
The first change was in the post model. where I have a method that’s called before creation. Originally this method would check for an archive from the existing month and add the id of said archive to the posts archive_id column if it existed. If it didn’t then it would create a new archive based on the month and year of the post. The problem with this was the creation of the archive was the only thing that used the year of the post. Now while this may not be a big problem for small short lived blogs it could cause a lot of confusion and errors for longer lived blogs. So I went in and changed the method to check for an existing archive based on month and year. I also changed the partial that displays the list of archives to sort them out by year.
Next I added and archives controller to handle the displaying of the archives. Now these changes are just steps in the right direction but not by any means completion of the system. I’m probably going to be spending a lot of time getting this system running right before I move on to other things.
If you want to grab the code from GitHub
and take a look I’m more than open to suggestions so you can add to the comments of this post to let me know your thoughts.
Add comment March 22, 2008









