Hi All!

I looked for a bug report link on hobocentral to no avail, so here is a bug report.

Hobo, specifically DRYML, crashes if one attempts to render a partial more than once per server start from a **.drym**l *file. I got so frustrated with this one that I generated a simple hobo app and a corresponding rails app (after re-installing ruby, rails and hobo:-( ).

The only thing I changed in the simple hobo app after generating it was to add one line to *front.dryml* that rendered a partial as in:

    <section class="content-body">
      <partial name='f' /> <<<<<<< the new line.
    </section>

I also added the corresponding *_f.dryml* file.

*_f.dryml* contains:

<h4>_f.dryml</h4>

I started the server and the index page rendered correctly (asking me to sign up as the admin). The contents of *_f.dryml* were rendered properly. Thereafter, if I reloaded the front page by any of the many possible methods, I got

|undefined method `_app_views_front__f_dryml__2611593037838989066_69968076602080' for 
#<#<Class:0x007f456c99b6d8>:0x00000004d7e9d0>
|


This continued until I restarted the server, whereupon it rendered properly the very first time I loaded the page and crashed thereafter.

When I implemented the same functionality in a bare rails app, it rendered the partial as many times as I desired. "AHa", I said, the problem is in hobo, "let's try to duplicate the working code in the hobo app."

I added a controller to the hobo app called *hfront* with views *index.html.erb* and *_f.html.erb*. When I loaded *localhost:3000/hfront*, the partial rendered correctly every time I reloaded the page.

*index.html.er**b *contains:

<h3>index.html.erb</h3>

<%= render :partial => "f"%>

*_f.html.erb* contains:

<h4>_f.html.erb</h4>

To help the maintainer, whomever that might be, I tried one last experiment. I changed *index.dryml* to read:

    <section class="content-body">
      <%= render :partial => "f"%>     <<<<<<< the new line.
    </section>

It crashed the second time I loaded the page.

What is the official way of submitting a bug report?

Don Ziesig

P.S. I sent a "please help me" email last night (Wednesday 16 October at about 23:00 EDST) but it never did show up on the mailing list. Ignore that email (if it shows up on the list) in place of this email since I have found a work-around that I can use to get my job done. It is not as elegant using html vs. dryml, but for now I have to use it.

--
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to