Software Development
Pages
(Move to ...)
Home
About
Contact
▼
Friday, June 29, 2007
Difference between capitalize and humanize in Rails
From the script/console:
>> t = "test"
=> "test"
>> t.capitalize
=> "Test"
>> t.humanize
=> "Test"
>> c = "foo bar"
=> "foo bar"
>> c.humanize
=> "Foo bar"
>> c.capitalize
=> "Foo bar"
1 comment:
Upender
3:26 AM
hi then what is the difference man..
are you ok?
Reply
Delete
Replies
Reply
Add comment
Load more...
‹
›
Home
View web version
hi then what is the difference man..
ReplyDeleteare you ok?