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
<[EMAIL PROTECTED]>

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Hobix-is-the-way mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/hobix-is-the-way

Reply via email to