automagically add created tag to new posts
MenTaLguY
mental at rydia.net
Thu May 10 20:30:49 EDT 2007
Thanks for following up on this. I haven't forgotten, but I've not had
much time to spend on hobix the past few weeks. Your work will help me
get this fixed sooner!
-mental
On Fri, 2007-05-04 at 16:06 +0200, info at dev-null.be wrote:
> 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!
>
> _______________________________________________
> Hobix-is-the-way mailing list
> Hobix-is-the-way at rubyforge.org
> http://rubyforge.org/mailman/listinfo/hobix-is-the-way
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20070510/2102f99f/attachment-0001.bin
More information about the Hobix-is-the-way
mailing list