NameError in CmsController#authenticate

Hi there,

Vasanthakumar Csk a écrit :

> Am new to this Ruby on Rails forum & also developing > applications in ROR. I have been stuck up for quite a long time in > 'Authentication' page. I have developed a basic login authentication > page - which gets user id and password and validates it. No encryption > in password. > Database name : cms > Table name : users > Authentication Code : > > [snip] > > I get this error : "NameError in CmsController#authenticate" > "uninitialized constant User"

Hmm it may be sound as a silly question, but are you sure to have a model named User ? :slight_smile: If not try this: script/generate model User

Hope it helps,