# Inflections.rb in spanish

**URL:** <https://www.ruby-forum.com/t/inflections-rb-in-spanish/93786>\
**Category:** Rails\
**Created:** [April 10, 2006, 5:43am UTC](https://www.ruby-forum.com/t/inflections-rb-in-spanish/93786 "2006-04-10T05:43:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterpunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@peterpunk](https://www.ruby-forum.com/u/peterpunk)\
**Post date:** [April 10, 2006, 5:43am UTC](https://www.ruby-forum.com/t/inflections-rb-in-spanish/93786/1 "2006-04-10T05:43:39Z")

</div>

Hi:

I have a problem with the plural of fracancia, I got fragancium but in  
spanish is fragancia.

I modified inflections in environment.rb

Inflector.inflections do |i|  
i.irregular ‘fragancia’, ‘fragancias’  
end

but is ignored.

The solution that I found was comment this inflection on inflections.rb

#inflect.singular(/([ti])a$/i, ‘\1um’)

Any idea?

thanks

P

---

<div class="post-metadata">

**Author:** ![peterpunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@peterpunk](https://www.ruby-forum.com/u/peterpunk)\
**Post date:** [April 10, 2006, 7:21am UTC](https://www.ruby-forum.com/t/inflections-rb-in-spanish/93786/2 "2006-04-10T07:21:50Z")

</div>

Pedro V. wrote:

> but is ignored.

Did you restart your server after you made this change?

The config is only loaded once, unlike application code.

Assuming that fragancias is the plural of fragancia, your code should be  
working.

If fragancia is the plural of fracanica, as you stated in your first  
sentence, you need to change your code.

–

Ray

---

<div class="post-metadata">

**Author:** ![peterpunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@peterpunk](https://www.ruby-forum.com/u/peterpunk)\
**Post date:** [April 10, 2006, 1:46pm UTC](https://www.ruby-forum.com/t/inflections-rb-in-spanish/93786/3 "2006-04-10T13:46:45Z")

</div>

Ray B. wrote:

> Pedro V. wrote:
> 
> > but is ignored.
> 
> Did you restart your server after you made this change?
> 
> The config is only loaded once, unlike application code.
> 
> Assuming that fragancias is the plural of fragancia, your code should be  
> working.
> 
> If fragancia is the plural of fracanica, as you stated in your first  
> sentence, you need to change your code.
> 
> –
> 
> Ray

Ray:

Im running through dispatch.rb via rewrite in .htaccess.  
I restarted apache, but still same error.

Unknown column 'estilos\_fragancias.fragancium\_id

Thanks

P

---

<div class="post-metadata">

**Author:** ![peterpunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@peterpunk](https://www.ruby-forum.com/u/peterpunk)\
**Post date:** [April 10, 2006, 4:48pm UTC](https://www.ruby-forum.com/t/inflections-rb-in-spanish/93786/4 "2006-04-10T16:48:59Z")

</div>

Pedro V. wrote:

> > > but is ignored.
> > 
> > Did you restart your server after you made this change?
> 
> Im running through dispatch.rb via rewrite in .htaccess.  
> I restarted apache, but still same error.
> 
> Unknown column 'estilos\_fragancias.fragancium\_id

I don’t know running via dispatch.rb.

I would try running through webrick to verify that your inflection rule  
is working correctly and then work on the configuration issue.

–

Ray

---

<div class="post-metadata">

**Author:** ![peterpunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@peterpunk](https://www.ruby-forum.com/u/peterpunk)\
**Post date:** [April 10, 2006, 4:54pm UTC](https://www.ruby-forum.com/t/inflections-rb-in-spanish/93786/5 "2006-04-10T16:54:25Z")

</div>

Ray B. wrote:

> Pedro V. wrote:
> 
> > > > but is ignored.
> > > 
> > > Did you restart your server after you made this change?
> > 
> > Im running through dispatch.rb via rewrite in .htaccess.  
> > I restarted apache, but still same error.
> > 
> > Unknown column 'estilos\_fragancias.fragancium\_id
> 
> I don’t know running via dispatch.rb.
> 
> I would try running through webrick to verify that your inflection rule  
> is working correctly and then work on the configuration issue.
> 
> –
> 
> Ray

Ray:

I cannot use webrick because I get Lost Connection to MySql during  
query.

Im not root on server, is a shared hosting.

So Im in trouble ☹

Thanks

P

---

<div class="post-metadata">

**Author:** ![peterpunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@peterpunk](https://www.ruby-forum.com/u/peterpunk)\
**Post date:** [April 10, 2006, 4:46pm UTC](https://www.ruby-forum.com/t/inflections-rb-in-spanish/93786/6 "2006-04-10T16:46:25Z")

</div>

> Ray:
> 
> Im running through dispatch.rb via rewrite in .htaccess.  
> I restarted apache, but still same error.
> 
> Unknown column 'estilos\_fragancias.fragancium\_id
> 
> Thanks
> 
> P

I dont know if Inflector.inflections has effect on environment.rb. How  
can I check that?

This issue starts when upgraded form rails 1.0 to 1.1.0 and 1.1.1.

Is a bug of rails 1.1.x?

Any Idea?

thanks

P
