Human Dunnil wrote:
> Hello,
> I have model which has a property named "name", I want to append a
> number to the end of the name when there is similar name in db.
> 
> name, name1, name2...
> 
> Is there a ready to use method in ruby and/or rails for doing so?
Nearly...
irb(main):001:0> s = "aaa"
=> "aaa"
irb(main):002:0> s = s.succ
=> "aab"
irb(main):003:0> s = s.succ
=> "aac"

Or...

irb(main):001:0> s = "aaa1"
=> "aaa1"
irb(main):002:0> s = s.succ
=> "aaa2"
irb(main):003:0> s = s.succ
=> "aaa3"

-- 
Alex