Forum: Ruby on Rails increment!(attribute) no worky

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Joe (Guest)
on 2006-02-24 05:44
I tried this:
@item.increment!('views')

But Rails say:
wrong number of arguments (1 for 0)

And the docs say (under instance methods):
increment!(attribute)

Say what? What say you?
Joe
This topic is locked and can not be replied to.