Maurício Linhares wrote:
> You should be doing it like this:
> 
> Temp.increment_counter( :counter, id )
> 
> This will increment the property ":counter" for the model Temp with
> "id", this column must have a default value of 0 (zero) or else this
> call won't work.

Thanks a lot! This look like what I am looking for.

> 
> On Wed, Sep 10, 2008 at 12:59 PM, Difei Zhao
> <[EMAIL PROTECTED]> wrote:
>>
>>
> --
> Maur�cio Linhares
> http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ 
> (en)
> Jo�o Pessoa, PB, +55 83 8867-7208

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to