fix deprecation warning in scaffold controllers

Relation#all is deprecated, using to_a to get an array of records.