config.gem, unite!

I got tired of letting config.gem kick my behind, so I created a little github project to unite all config.gem in one place, with its options like :lib, :version, making it easy to find.

So, if you want to colaborate just clone the repo and add the config.gem to the gems you use.

http://github.com/lucasuyezu/config.gem–unite-/tree/master
The project is public, I hope google index it soon so people can find the config.gem for their gems in the web quickly.

Posted in en-US | Tagged , , , | Leave a comment

config.gem, unite!

Cansei de apanhar dos config.gem e criei um projetinho no github pra ver se consigo reunir no mesmo lugar os config.gems como devem ser feitos, com as opções, libs e tudo certinho.

Então, quem quiser colaborar, é só clonar o repo e adicionar as gems que vcs utilizam.

http://github.com/lucasuyezu/config.gem–unite-/tree/master

O projeto tá público, espero que o google indexe logo e fique fácil de achar os config.gems na web depois.

Posted in pt-BR | Tagged , , | Leave a comment

“t” method in models and controllers

I’m using the i18n api in my pet project and ran into a little problem: I need to use the “t” method in models and controllers, but I couldn’t since “t” is for views.

I thought about including the views modules where needed, which is very ugly. But, Ryan Bates showed me the solution: If you’re outside the view, call “I18n.translate”.

Posted in en-US | Tagged , , , | Leave a comment

Método “t” nos models e controllers

Eu estou usando a api de I18n no meu pet project e me deparei com um problema: eu precisava usar o método “t” nos models e controllers, mas não conseguia, já que “t” é um método para views.

Cheguei a pensar em dar include dos módulos da view onde precisasse, o que é muito porco. Porém, contudo, entretanto, todavia, Ryan Bates mostrou a solução para o meu problema: Se você estiver fora da view e precisar traduzir algo, use “I18n.translate”.

Posted in pt-BR | Tagged , , , | Leave a comment

Nova casa

Meu blog morreu. De novo. Vou resolver alguns problemas da maneira mais prática possível.

Primeiro: Os temas do blog sempre deram dor de cabeça. Vou ficar com o tema padrão do WordPress.

Segundo: Nunca me decidi se escrevia em pt-BR ou en-US, então vou escrever nas duas línguas.

Terceiro: Já é a segunda vez que perco o blog por causa de brincadeiras num VPS. Vou deixar esse blog hospedado no WordPress e usar o VPS só pra brincar mesmo.

Por enquanto é só pessoal.

My blog died. Again. I am going to solve some of my problems in the most practical way.

First of all: This blog’s themes always gave me headaches. I am going to stick with WordPress’ default theme for a while.

Second: I never decided between writing in pt-BR or en-US, so I’m writing in both.

Third: It’s the second time I lose my blog by playing in a VPS. This blog will be hosted at WordPress, and the VPS will be left only for my expirements.

And that’s all (for now) folks!

Posted in Uncategorized | Leave a comment