In this case, the ID is blog_post
, so you can retrieve its records pluralizing the Model ID, and using it as a method on the dato
object:
# iterate over the Array of records of the `blog_post` modeldato.blog_posts.each do |record|# ...end
If you need to access the record associated to a single-instance model, you don't need to pluralize the Model ID:
# returns the record for the `about_page` single-instance model# (or nil, if it hasn't been created yet)dato.about_page