I'm new to Ruby, coming from PHP.
Does Ruby (on Rails?) has any function library like php.net?
If has, is this the api.rubyonrails.com ?
Yes, and also you will want to look at the ruby docs:
Keep up to date with Rails on Twitter and This Week in Rails
Policies: Conduct, License, Maintenance, Security, Trademarks