Forum: Ruby on Rails To use model method

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fa3ad6d6edeef1c7dd83c910fdfb82f4?d=identicon&s=25 Angappan Ayyavoo (angaps)
on 2009-01-19 07:58

class ApplicationController < ActionController::Base
  helper :all # include all helpers, all the time


model :cart
model :line_item

end


I want to use model class only(cart and line_item), so created without
scaffold.

I am using cart and line_item model classes separately and i want to
initiate this model classes in the application.rb, getting error stating

 undefined method model.

I want to use model class only, so created without scaffold.


thanks
Angaps
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2009-01-19 11:56
(Received via mailing list)
On 19 Jan 2009, at 06:58, Angappan Ayyavoo wrote:

> end
>
That method was removed ages ago and is no longer needed.

Fred
This topic is locked and can not be replied to.