Skip to content
On this page


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.

field :id, as: :id


Wraps the content into an anchor that links to the resource.