Re: Re: problem with submit button in rails 3

Colin Law
2011-09-21T15:50:48Z

On 21 September 2011 16:35, Everaldo Gomes
<everaldo.gomes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
>
>
> On Wed, Sep 21, 2011 at 12:29 PM, Pab
<prabu.net88-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.