Forum: Ruby on Rails Model method_missing error (rforum)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Jon A. Lambert (Guest)
on 2005-12-20 17:27
(Received via mailing list)
I'm attempting to get rforum working.  I pulled it from the subversion
repository.
Everything works fine until I attempt to make a post.

I get the following error.
c:/apps/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1498:in
`method_missing'
#{RAILS_ROOT}/app/controllers/topic_controller.rb:80:in `new'
c:/apps/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:853:in
`send'
c:/apps/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:853:in
`perform_action_without_filters'The code in topic_controller  def new
...
else      @post = Post.new      breakpoint-->      @post.author = @user
end  endThe author method isn't found in the model post.rbYet it is
there.
So I go into breakpoint and examine the methods on Post and the @post
instance, and find the only ones defined are the ones done with the
Rails
meta magic,like has_many, belongs_to?I examine the @forums instance and
it
has methods.What would cause rails to load post.rb and miss all the
methods?--J Lambert
Jon A. Lambert (Guest)
on 2005-12-21 00:58
(Received via mailing list)
Jon A. Lambert wrote:
> What would cause rails to
> load post.rb and miss all the methods?--J Lambert
>

Sorry about the fancy outlook munged post.
Problem solved.
Removed SearchFerret from RForum site configuration and all is well with
the
world.

--
J Lambert
This topic is locked and can not be replied to.