search for: posthelp

Displaying 2 results from an estimated 2 matches for "posthelp".

Did you mean: popthelp
2008 May 28
3
Plug-in support for Camping Apps
# camping_plugin.rb # plug-in support for Camping Apps # require ''lib/camping_plugin'' # override R helper method to your liking :-) module Camping module PluginHelpers def R_with_module(c,*g) p,h=/\(.+?\)/,g.grep(Hash) g-=h raise "bad route" unless u = c.urls.find{|x| break x if x.scan(p).size == g.size &&
2006 Jul 14
0
acts_as_nested_set and acts_as_threaded
...Line 18 in post_controller.rb shows: [post_controller.rb] def list display_threads @posts <= line 18 @post_pages, @posts = paginate :posts, :per_page => 10, :order => "root_id desc, lft" end The display_threads method is defined in: [post_helper.rb] module PostHelper def display_threads (threads) (snipped) end end 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. gk -- Posted via http://www.ruby-forum.com/.