From: Vikas Gholap Date: 2008-12-29T15:20:26+09:00 Subject: how to declare model classes in Application.rb Hello all, I am new to ruby development. I created a simple online book store Application. but when i select book & click on 'add to cart' it gives me error "undefined method `model' for ApplicationController:Class" class ApplicationController < ActionController::Base model :cart model :line_item end cart & line_item are two model classes. I am storing the model cart in session I'm using rails 2.2 version So what's going wrong? please help me to solve this problem. Vikas -- Posted via http://www.ruby-forum.com/.