Displaying 1 result from an estimated 1 matches for "memteam".
Did you mean:
memtea
2006 Jun 19
2
const_missing error of has_many through association
...se
> belongs_to :team
> belongs_to :user
>end
My ApplicationController has the following code. My other
controllers are empty.
>class ApplicationController < ActionController::Base
> def home
> @user = Users.find(@params["id"])# Get user based on id
> @memteam = @user.teams # Get all teams that this user has joined
> end
>end
When I load my page, I got those errors
>NameError in StartController#home
>d:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in `const_missing'': uninitialize...