search for: plant_user

Displaying 1 result from an estimated 1 matches for "plant_user".

2006 Nov 04
0
Rails newbie - can anyone please help with many to many NoMethodError
...so I''m avoiding has_and_belongs_to_many - plus it didn''t work :(). ::user.rb starts:- class User < ActiveRecord::Base has_many :Plants, :through => :plants_users ... ::plant.rb is:- class Plant < ActiveRecord::Base has_many :Users, :through => :plants_users end ::plant_user.rb is: class PlantUser < ActiveRecord::Base belongs_to :user belongs_to :plant end ::plant_controller.rb is class PlantController < ApplicationController before_filter :login_required scaffold :plant def list @plants = @session[''user''].plants end end So far so goo...