ID
The id
field is used to show the record's id. By default, it's visible only on the Index
and Show
views. That is a good field to add the as_link_to_resource
option to make it a shortcut to the record Show
page.
ruby
field :id, as: :id
Options
-> link_to_resource
Wraps the content into an anchor that links to the resource.