to_formatted_s(format = :default)
Instance Public methods
Extends Array#to_s
to convert a collection of elements into a
comma separated id list if :db
argument is given as the
format.
1 | Blog.all.to_formatted_s( :db ) # => "1,2,3" |
Extends Array#to_s
to convert a collection of elements into a
comma separated id list if :db
argument is given as the
format.
1 | Blog.all.to_formatted_s( :db ) # => "1,2,3" |
Designed by : w10schools
service@w10schools.com
Please login to continue.