Hi All!
I am having a major problem with partials (to the point that I
re-installed ruby, rails and hobo, unfortunately to no avail).
To make this as simple as possible, I generated a bare hobo website,
which works as expected.
I demonstrated my problem by adding one line to front/index.dryml
<section class="content-body">
<partial name='f' /> <<<<<<< the new line.
</section>
I added the corresponding partial file views/front/_f.dryml
<h5>_f.dryml</h5>
When I first run rails server and access the site the normal hobo
welcome appears, together with
the text _f.dryml from the file.
If I do any of the following: reload the page, click on home, re-enter
the sites localhost:3000 after the first rendering, I get an error like
this:
|undefined method `_app_views_front__f_dryml__2611593037838989066_69968076602080' for
#<#<Class:0x007f456c99b6d8>:0x00000004d7e9d0>
|
This is the same as I got from executing my newest website commission
(except obviously that the encoded file name changes). It always works
the first time, and crashes thereafter.
I get the same error if I use erb to access the partial:
<section class="content-body">
<%= render :partial => f" %> <<<<<<< the new line.
</section>
same thing also happens if I rename the partial to _f.html.erb
To be sure I haven't hosed my computer, I dropped back to Rails and
generated a simple app (again with one front controller and two files,
index.html.erb and _f.html.erb). The rails app runs fine and re-renders
the partial as many times as I try.
Anyone have an idea what is going on here?
Thanks,
Don Ziesig
--
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.