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