excellent, but is there a tutorial somewhere? I switched the def to
this:

<def tag="index-page" for="Blog">
  <page merge title="Blogs">
    <body: class="index-page blog" param/>

    <content: param>
      <header param="content-header">
        <h2 param="heading">Blogs</h2>

        <p param="count" if>There <count prefix="are"/></p>
      </header>

      <section param="content-body">

        <a action="new" to="&model" param="new-link"/>

        <page-nav param="top-page-nav"/>

        <sortable-collection param/>

        <page-nav param="bottom-page-nav"/>


      </section>
    </content:>
  </page>
</def>

(so all I really did was change collection to sortable-collection) but
now my web-app just crashes with error:

undefined method `reorder_blogs_url' for #<ActionView::Base:
0xb67b5848>

/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:605:in `send'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:605:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/taglibs/rapid_plus.dryml:75:in
`send'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/taglibs/rapid_plus.dryml:75:in
`sortable_collection'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:328:in `_tag_context'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:248:in `new_context'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/helpers/
capture_helper.rb:129:in `with_output_buffer'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:248:in `new_context'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:328:in `_tag_context'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/taglibs/rapid_plus.dryml:71:in
`sortable_collection'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:464:in `send'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:464:in `override_and_call_tag'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:427:in `call_tag_parameter'
app/views/taglibs/application.dryml:128:in `index_page__for_blog'
app/views/taglibs/application.dryml:122:in `index_page__for_blog'
app/views/taglibs/application.dryml:122:in `index_page__for_blog'
app/views/taglibs/application.dryml:115:in `index_page__for_blog'
app/views/taglibs/application.dryml:338:in `page'
app/views/taglibs/application.dryml:314:in `page'
app/views/taglibs/application.dryml:314:in `page'
app/views/taglibs/application.dryml:306:in `page'
app/views/taglibs/application.dryml:306:in `page'
app/views/taglibs/application.dryml:303:in `page'
app/views/taglibs/application.dryml:112:in `index_page__for_blog'
app/views/taglibs/application.dryml:111:in `index_page__for_blog'

 If sortable-collection is a part of rapid, why is there a no method
error? I added acts_as_list to the model and got the error:


undefined method `total_pages' for #<Array:0xb6c60e10>

/usr/lib/ruby/gems/1.8/gems/mislav-will_paginate-2.3.10/lib/
will_paginate/view_helpers.rb:197:in `total_pages_for_collection'
/usr/lib/ruby/gems/1.8/gems/mislav-will_paginate-2.3.10/lib/
will_paginate/view_helpers.rb:98:in `will_paginate'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:605:in `send'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:605:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/taglibs/rapid_navigation.dryml:
86:in `page_nav'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:328:in `_tag_context'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:248:in `new_context'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/helpers/
capture_helper.rb:129:in `with_output_buffer'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:248:in `new_context'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:328:in `_tag_context'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/taglibs/rapid_navigation.dryml:
85:in `page_nav'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:464:in `send'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:464:in `override_and_call_tag'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/dryml/
template_environment.rb:427:in `call_tag_parameter'
app/views/taglibs/application.dryml:126:in `index_page__for_blog'
app/views/taglibs/application.dryml:122:in `index_page__for_blog'
app/views/taglibs/application.dryml:122:in `index_page__for_blog'
app/views/taglibs/application.dryml:115:in `index_page__for_blog'
app/views/taglibs/application.dryml:338:in `page'
app/views/taglibs/application.dryml:314:in `page'
app/views/taglibs/application.dryml:314:in `page'
app/views/taglibs/application.dryml:306:in `page'
app/views/taglibs/application.dryml:306:in `page'
app/views/taglibs/application.dryml:303:in `page'
app/views/taglibs/application.dryml:112:in `index_page__for_blog'
app/views/taglibs/application.dryml:111:in `index_page__for_blog'

I have acts_as_list in my vendor/plugins folder, and I even manually
added the following to the blogs controller:

def reorder
  hobo_reorder
end

but I still get the last error. Any ideas?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to