# Problem with pluralization

**URL:** <https://discuss.rubyonrails.org/t/problem-with-pluralization/63609>\
**Category:** rubyonrails-talk\
**Created:** [April 17, 2012, 8:11pm UTC](https://discuss.rubyonrails.org/t/problem-with-pluralization/63609 "2012-04-17T20:11:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [April 17, 2012, 8:11pm UTC](https://discuss.rubyonrails.org/t/problem-with-pluralization/63609/1 "2012-04-17T20:11:35Z")

</div>

Hi,

I'm having a strange problem with pluralization in rails 2.3.8 with Ruby 1.8.7 (2011-12-28 patchlevel 357).

I have Spanish inflection rules, and wanted to add roles to my app. So I script/generated the Rol (spanish for Role) model and scaffolding without problem.

However, when accessing the index I get a NameError in Roles#index, indicating:

undefined local variable or method `new\_rol\_path' for #\<ActionView...\>

I found that changing the link in the view from \<%= link\_to 'New rol', new\_rol\_path %\> to \<%= link\_to 'New rol', new\_role\_path %\>

it starts to work. Similar problem also presents for edit\_rol\_path. The rules seems to be ok:

new\_rol GET /roles/new(.:format) {:controller=\>"roles", :action=\>"new"} edit\_rol GET /roles :id/edit(.:format) {:controller=\>"roles", :action=\>"edit"}

Every other aspect of the pluralization seems to be working according with the custom inflector configuration.

Any ideas?

Regards.
