A fix and a problem
Bradford R. Bowman
bowman at mazirian.com
Mon Sep 4 14:14:57 EDT 2006
On Mon, 2006-09-04 at 12:31 +0200, Paul van Tilburg wrote:
> I've created a new blog (hobix create blog ~/.hobix/foo), and after
> replying 'apache2-all' to the question which mode should be selected,
> I also get this error after:
>
> *** Joining blog `a bokononist asks', adding you as author.
> /usr/lib/ruby/1.8/hobix/comments.rb:64:in `entry_comment_form_erb':
> undefined local variable or method `entry_id' for #<Hobix::Out::Quick:0x302e0dd0> (NameError)
Oops. It's the result of a recent change that was made to accommodate
blogs served from a subdirectory. I guess I didn't have the most recent
code after all. Sorry about that.
This will fix it:
Index: comments.rb
===================================================================
--- comments.rb (revision 137)
+++ comments.rb (working copy)
@@ -61,7 +61,7 @@
def entry_comment_form_erb; %{
<div class="entry">
- <form id="userComment" method="post" action="<%= weblog.expand_path
"/control/comment/#{ entry_id }" %>">
+ <form id="userComment" method="post" action="<%=
weblog.expand_path( '/control/comment/' ) %><%= entry_id %>">
<div class="entryAttrib">
<div class="entryAuthor"><input name="<%=
Hobix::Facets::Comments.form_field 'author' %>" type="textbox" size="15"
maxlength="50" /></div>
<div id="liveTime" class="entryTime">said on <nobr>DD Mon
YYYY</nobr> <nobr>at HH:MM AM</nobr></div>
--
Bradford R. Bowman
<bowman at mazirian.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20060904/df64339c/attachment.bin
More information about the Hobix-is-the-way
mailing list