Fix scaffold view generator templates for reference attributes

Rails generates field with an `_id` suffix for reference attributes, see
https://github.com/rails/rails/blob/master/railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb#L24-L30

This commit should fix this case by using `attribute.column_name` instead of
`attribute.name` as used by the Rails generator template.