On May 30, 4:03 pm, joanne <[email protected]> wrote:
> Hi, I am a new comer with Ruby on Rails
> and i am trying to create a controller for the model
>
> and controller is simple
>
> def new
>   @test = Test.new
> end
>
> and model is
> Rails gernerate model Test name:string title:string
>
> and it returns me an error:  uninitialized constant
> TestController::Tests
>
That sounds like somewhere in your controller you've got Tests rather
than Test. Also, Test may not be a good name for your class - there is
already a module in the ruby std lib called Test

Fred
> Please help
> Thanks

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to