added one test case and example for ActiveRecord::Base.to_param method
Merge pull request #12900 from kuldeepaggarwal/f-to-param

added one test case and example for ActiveRecord::Base.to_param method