Ruby pluralizing the controller in route
I am new to ruby world and following tutorials to create a simple application. I am having a problem to create a form. I followed this link: What is the Rails3 equivalent of start_form_tag?
but I am getting undefined method people_path for #<#<Class:0x287c670>:0x2879370>
my controller is Persons and I have this in route file: resource :persons
so probably ruby is trying to pluralize the Persons. I have no idea how to fix this issue and google search also does not seem t开发者_运维技巧o be helping.
Instead of resource :persons
try this:
resources :people
And your controller would be PeopleController
精彩评论