<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-9058337287611971869.post3792152945140434363..comments</id><updated>2010-01-26T10:24:35.873-02:00</updated><title type='text'>Comments on Blog do Grasselli: Configurando regras de acentuação manualmente no R...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://brunograsselli.com.br/feeds/3792152945140434363/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9058337287611971869/3792152945140434363/comments/default'/><link rel='alternate' type='text/html' href='http://brunograsselli.com.br/2009/01/configurando-regras-de-acentuacao.html'/><author><name>Bruno Grasselli</name><uri>http://www.blogger.com/profile/13396436801909306046</uri><email>bruno.grasselli@gmail.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9058337287611971869.post-6826382927115621457</id><published>2010-01-26T10:24:35.873-02:00</published><updated>2010-01-26T10:24:35.873-02:00</updated><title type='text'>Opa,

Sei que é meio antigo mas ainda funciona, on...</title><content type='html'>Opa,&lt;br /&gt;&lt;br /&gt;Sei que é meio antigo mas ainda funciona, ontem eu estava fazendo algo parecido. Mas estava pensando em usar regras com regex. Eu usei inflect.plural(/(.*)al$/i,  &amp;#39;\1ais&amp;#39;) para pluralizar real -&amp;gt; reais, animal -&amp;gt; animais, ou seja, tudo que termine com al colocar ais. No começo funcionou perfeito para o que eu queria mas dae veio a dúvida sobre os models e controllers.&lt;br /&gt;&lt;br /&gt;Criei uma regra que tratasse disso para o meu teste tinha um model InternationalWaybill e criei a seguinte regra inflect.plural(/(.*)ll$/i,  &amp;#39;\1foo&amp;#39;). Alterou o final do nome para foo ficando international_waybifoo dando erro dizendo que a tabela não existe. &lt;br /&gt;&lt;br /&gt;Claro que não existe heheheh!!&lt;br /&gt;&lt;br /&gt;Você saberia se tem alguma forma de desconsiderar quando tenta traduzir models para tabelas!?&lt;br /&gt;&lt;br /&gt;Ou somente criando uma lista de palavras &amp;quot;irregulares&amp;quot;. inflect.irregular &amp;#39;real&amp;#39;, &amp;#39;reais&amp;#39;...&lt;br /&gt;&lt;br /&gt;Valew pelo post... abs Targa</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9058337287611971869/3792152945140434363/comments/default/6826382927115621457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9058337287611971869/3792152945140434363/comments/default/6826382927115621457'/><link rel='alternate' type='text/html' href='http://brunograsselli.com.br/2009/01/configurando-regras-de-acentuacao.html?showComment=1264508675873#c6826382927115621457' title=''/><author><name>Pablo Targa</name><uri>http://www.blogger.com/profile/01199416751311109768</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://brunograsselli.com.br/2009/01/configurando-regras-de-acentuacao.html' ref='tag:blogger.com,1999:blog-9058337287611971869.post-3792152945140434363' source='http://www.blogger.com/feeds/9058337287611971869/posts/default/3792152945140434363' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-9058337287611971869.post-5785449291697513733</id><published>2009-08-23T22:17:09.376-03:00</published><updated>2009-08-23T22:17:09.376-03:00</updated><title type='text'>exatamente oq eu procurava. obrigado por compartil...</title><content type='html'>exatamente oq eu procurava. obrigado por compartilhar.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9058337287611971869/3792152945140434363/comments/default/5785449291697513733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9058337287611971869/3792152945140434363/comments/default/5785449291697513733'/><link rel='alternate' type='text/html' href='http://brunograsselli.com.br/2009/01/configurando-regras-de-acentuacao.html?showComment=1251076629376#c5785449291697513733' title=''/><author><name>Polo</name><uri>http://www.blogger.com/profile/01952782994960000212</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://brunograsselli.com.br/2009/01/configurando-regras-de-acentuacao.html' ref='tag:blogger.com,1999:blog-9058337287611971869.post-3792152945140434363' source='http://www.blogger.com/feeds/9058337287611971869/posts/default/3792152945140434363' type='text/html'/></entry></feed>