# To use model method

**URL:** <https://www.ruby-forum.com/t/to-use-model-method/158082>\
**Category:** Rails\
**Created:** [January 19, 2009, 7:58am UTC](https://www.ruby-forum.com/t/to-use-model-method/158082 "2009-01-19T07:58:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![angaps](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/77aa72/32.png) [@angaps](https://www.ruby-forum.com/u/angaps)\
**Post date:** [January 19, 2009, 7:58am UTC](https://www.ruby-forum.com/t/to-use-model-method/158082/1 "2009-01-19T07:58:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![angaps](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/77aa72/32.png) [@angaps](https://www.ruby-forum.com/u/angaps)\
**Post date:** [January 19, 2009, 11:56am UTC](https://www.ruby-forum.com/t/to-use-model-method/158082/2 "2009-01-19T11:56:14Z")

</div>

On 19 Jan 2009, at 06:58, Angappan Ayyavoo wrote:

> end

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

Fred
