search for: plant_controller

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

Did you mean: plans_controller
2006 Nov 04
0
Rails newbie - can anyone please help with many to many NoMethodError
...:- 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 good (I think), but when I access this (using instantrails), I get NoMethodError in PlantController#list unde...