automagically add created tag to new posts
info at dev-null.be
info at dev-null.be
Fri May 4 10:06:12 EDT 2007
Hello,
when creating a new post, the 'created tag' wasn't automagically added to
the post-yaml (at least not in my case, using Hobix 0.5 from trunk). The
omission of a 'created tag' results in an noMethoderror as mentioned in my
previous post. I fixed the automatic adition of a created tag with the
current date by adding an "entry.created = Time.now" in the post_action in
commandline.rb, like this...
359 entry = entry_class.new
360 entry.author = @config['username']
361 entry.created = Time.now
It seems to do just the job.
The noMethoderror resorting from the attempt to sort entries by the
created tag when there is none (ergo nil) is of course not altered by
this.
greetings!
More information about the Hobix-is-the-way
mailing list