Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Deprecated method model

#1744

Hi All

Iam new to ROR.

Iam using the model or scaffold in the application.rb, its stating that undefined model.

undefined method model' for ApplicationController:Class

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

model :cart model :line_item end

i want to use my model and to be used in the rhtml files. how can i use this. how can i overcome this type of errors?

thanks shankar

Reported by shankar · January 13th, 2009 @ 08:48 AM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none