Thank you gentlemen.
I am diligently trying to go through the tutorial and am stuck in the
Filtering stories by status section:

Here is my ProjectController class:

class ProjectsController < ApplicationController

  hobo_model_controller

  auto_actions :all

  def show
    @project = find_instance
    @stories = @project.stories.apply_scopes(:search => [params
[:search], :title],
               :order_by  => parse_sort_param(:title, :status),
               :status_is => params[:status])
  end

end

And here is the show.dryml for app/views/projects directory:

<show-page>
   <collection: replace>
    <table-plus fields="this, status">
      <prepend-header:>
        <div class="filter">
          Display by status: <filter-menu param-name="status"
options="&StoryStatus.all"/>
        </div>
      </prepend-header:>
    </table-plus>
   </collection:>
</show-page>

Here is the exception trace when I click on a project in the projects
tab:

 NoMethodError in Projects#show

Showing projects/show.dryml where line #3 raised:

undefined method `member_class' for #<Project:0xb5ace490>

Extracted source (around line #3):

1: <show-page>
2:    <collection: replace>
3:     <table-plus fields="this, status">
4:       <prepend-header:>
5:         <div class="filter">
6:           Display by status: <filter-menu param-name="status"
options="&StoryStatus.all"/>

RAILS_ROOT: /home/bruparel/work/agility
Application Trace | Framework Trace | Full Trace

/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
attribute_methods.rb:256:in `method_missing_without_find_for'
/usr/local/lib/ruby/gems/1.8/gems/hobo-0.8.3/lib/hobo/find_for.rb:
48:in `method_missing'
/usr/local/lib/ruby/gems/1.8/gems/hobo-0.8.3/taglibs/rapid_plus.dryml:
3:in `table_plus'
/usr/local/lib/ruby/gems/1.8/gems/hobo-0.8.3/lib/hobo/dryml/
template_environment.rb:311:in `_tag_context'
/usr/local/lib/ruby/gems/1.8/gems/hobo-0.8.3/lib/hobo/dryml/
template_environment.rb:231:in `new_context'
/usr/local/lib/ruby/gems/1.8/gems/hobo-0.8.3/lib/hobo/dryml/
template_environment.rb:311:in `_tag_context'
/usr/local/lib/ruby/gems/1.8/gems/hobo-0.8.3/taglibs/rapid_plus.dryml:
1:in `table_plus'
app/views/projects/show.dryml:3:in `render_page'
app/views/projects/show.dryml:2:in `render_page'
app/views/taglibs/auto/rapid/pages.dryml:81:in
`show_page__for_project'
app/views/taglibs/auto/rapid/pages.dryml:78:in
`show_page__for_project'
app/views/taglibs/auto/rapid/pages.dryml:78:in
`show_page__for_project'
app/views/taglibs/auto/rapid/pages.dryml:77:in
`show_page__for_project'
app/views/taglibs/auto/rapid/pages.dryml:77:in
`show_page__for_project'
app/views/taglibs/auto/rapid/pages.dryml:70:in
`show_page__for_project'
app/views/taglibs/themes/clean/clean.dryml:2:in `page'
app/views/taglibs/themes/clean/clean.dryml:1:in `page'
app/views/taglibs/auto/rapid/pages.dryml:66:in
`show_page__for_project'
app/views/taglibs/auto/rapid/pages.dryml:65:in
`show_page__for_project'
app/views/projects/show.dryml:1:in `render_page'
app/views/projects/show.dryml:1:in `render_page'

What am I doing wrong?

Bharat


--~--~---------~--~----~------------~-------~--~----~
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