On 21 September 2011 16:35, Everaldo Gomes <everaldo.go...@gmail.com> wrote:
>
>
> On Wed, Sep 21, 2011 at 12:29 PM, Pab <prabu.ne...@gmail.com> wrote:
>>
>> hi
>>   well i am have having contoller named ProductController
>> but its asking for ProductsController
>> i don't know how to over come this problem?
>>
> Hi,
> rename your controller from ProductController to ProductsController. In
> Rails, the convention is the plural in controller's name.

and of course the file should be products_controller.rb and the model
should be Product in products.rb and the table name products.

Colin
-- 
gplus.to/clanlaw

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to