Acts_as_nested_set and acts_as_threaded

I’m trying to use acts_as_nested_set, as modifed by Bob S. to add
threaded functionality. I’m getting the following error:

undefined method display_threads' for #<PostController:0x3ae9828> ... #{RAILS_ROOT}/app/controllers/post_controller.rb:18:inlist’

Line 18 in post_controller.rb shows:

def list
display_threads @posts <= line 18
@post_pages, @posts = paginate :posts, :per_page => 10, :order =>
“root_id desc, lft”

The display_threads method is defined in:

module PostHelper
def display_threads (threads)

My understanding is that Helper code is merged with Controller code. I
wonder then why Rails can’t find the method display_threads.

Thanks for your help.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs