#61 ✓resolved
Mathijs Kwik

[FIX] 'agility' tutorial has minor glitch in edge hobo

Reported by Mathijs Kwik | July 22nd, 2008 @ 12:03 AM

I'm not sure if reporting edge errors here is appropriate, if it's not, please tell me.

Since the 'agility' app was done using edge hobo (or at least it doesn't fully work on 0.7.5), I thought I'dd report it here, so the documentation stays in sync with the current code.

I don't know if the documentation should be fixed(ie edge broke the old way of doing things) or there's a bug in edge.

this part:

<show-page>
  <content-body:>
    <h2><Your/> Assigned Tasks</h2>
    <repeat with="&@user.tasks.group_by(&:story)">
      <h3><a with="&this_key"/></h3>
      <collection class="tasks"/>
    </repeat>
  </content-body:>
</show-page>

breaks on the tasks collection. somehow 'this' is not available anymore.

 NoMethodError in Users#show

Showing users/show.dryml where line #6 raised:

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.origin_attribute

Extracted source (around line #6):

3:     <h2><Your/> Assigned Tasks</h2>
4:     <repeat with="&@user.tasks.group_by(&:story)">
5:       <h3><a with="&this_key"/></h3>
6:       <collection class="tasks"/>
7:     </repeat>
8:   </content-body:>
9: </show-page>

RAILS_ROOT: /mnt/data/projects/agility
Application Trace | Framework Trace | Full Trace

vendor/plugins/hobo/taglibs/rapid_generics.dryml:82:in `base_collection'
vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:273:in `_tag_context'
vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:232:in `new_context'
vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:273:in `_tag_context'
vendor/plugins/hobo/taglibs/rapid_generics.dryml:72:in `base_collection'
vendor/plugins/hobo/taglibs/rapid_generics.dryml:61:in `collection'
vendor/plugins/hobo/lib/hobo/dryml/scoped_variables.rb:20:in `new_scope'
vendor/plugins/hobo/taglibs/rapid_generics.dryml:59:in `collection'
vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:273:in `_tag_context'
vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:232:in `new_context'
vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:273:in `_tag_context'
vendor/plugins/hobo/taglibs/rapid_generics.dryml:58:in `collection'
app/views/users/show.dryml:6:in `render_page'
app/views/users/show.dryml:4:in `render_page'
app/views/users/show.dryml:4:in `render_page'
app/views/users/show.dryml:2:in `render_page'
app/views/taglibs/themes/clean/clean.dryml:2:in `page'
app/views/taglibs/themes/clean/clean.dryml:1:in `page'
app/views/users/show.dryml:1:in `render_page'
app/views/users/show.dryml:1:in `render_page'

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages