Archive for June, 2008:
Ultrasphinx bug?
It seens Ultrasphinx plugin for Ruby on Rails doesn’t know how to deal with Decimal data type from MySQL.
You can use a Decimal column for indexing, but when you need to make thecolumn sortable it comes the problem. As you know, faceting is on for numeric and date fields and to add the sortable feature to it, we need to pass a hash with
{:sortable => true}
Ok, then you run rake tasks to rebuild your configuration file and indexes and try to sort the search by the Decimal column and we got an error saying our column isn’t sortable.
You can check isn’t generating the _sortable sufix by looking the ultrasphinx configuration file. All other sortable fields have their _sortable sufix added to ti, except by the decimal field.
I’ll report it as soon as possible to Evan Weaver, the plugin’s owner, or maybe try to fix it by myself.
Updated: June, 16
I fixed by adding ‘decimal’ => ‘float’ in the TYPE_MAP inside the fields.rb file of ultrasphinx plugin.
RELEASED – “Rails 2.1 – What`s new ?” Book

The Book Rails 2.1 – What`s new ? Made by Carlos Brando and Tapajós was released last week. It was the very first book presenting Rails 2.1 and its new features, in Portuguese, and best of all, it was released free of charge ( like free beer).
But Carlos Brando and the Brazilian rails community were very upset because most Railers of the world couldn`t read portuguese so they couldn`t rejoice the book like us. So I and other fellows, lead by Carlos Brando got together to translate the book to english, so all people could read and use it.
I`m very proud of being part of this community that made the translation and reviewed it in less than 2 days. You can download the book here or from Carlos Brando blog.
I and these guys are who made this task possible, so please thanks us and if you like our work, please recommend us in in Working With Rails:
Rafael Barbosa – Recommend
Made Introduction and chapter 1
Caike Souza – Twitter: @caike
Made Chapter 2
Pedro Pimentel (Myself) – Recommend
Made Chapters 3-8 and 10-13
Abraão Coelho – Recommend
Made Chapter 9
Ricardo S Yasuda – Recommend
Made Chapter 14
And last, but least, don`t forget to thanks and recommends the authors if you haven`t did yet.
More information about the original book can be found in Carlos Brando blog.
Download the book here
Open Source Rails
Para quem gosta de aprender olhando código existente ou prefere não reinventar a roda toda vez que for criar um sistema em rails, temos agora a oportunidade de pesquisar e baixar sistemas rails completos.
A iniciativa é do railer Jacques Crocker, que criou o site Open Source Rails, onde ele compila grande parte dos sistemas rails open source do mercado, como por exemplo, Mephisto, Typo e Lovd By less. Ele convida a comunidade a se cadastrar no site e a mandarem novos sistemas para lá. Vale a pena conferir o projeto e contribuir, pois é importante para a comunidade rails!
Open Source Rails – http://www.opensourcerails.com/
Jacques Crocker – http://www.railsjedi.com/
