Author Archives: Peleteiro

Nota mental - render :collection

Em Rails quando usamos:
 
<%= render :partial => "nome_do_partial", :collections => colecao %>
 
dentro do partial existe uma variável implicita colecao_counter começando de zero.

Posted in Uncategorized | Tagged , | Leave a comment

Installing CouchDB on Ubuntu 8

Apache CouchDB is a very nice schema-free document-oriented database that I’m playing with lately.
Here’s a quick guide to get CouchDB running on Ubuntu 8:
Prepare your environment
sudo aptitude install automake autoconf libtool subversion-tools help2man spidermonkey-bin build-essential erlang erlang-manpages libicu38 libicu-dev libreadline5-dev checkinstall libmozjs-dev wget
Create a couchdb user
sudo adduser –no-create-home –disabled-password –disabled-login couchdb
Download and build the latests [...]

Posted in Uncategorized | 5 Comments