diff --git a/docs/docs/getting-started/sorting.md b/docs/docs/getting-started/sorting.md index dde0b7ad..c0619b1d 100644 --- a/docs/docs/getting-started/sorting.md +++ b/docs/docs/getting-started/sorting.md @@ -10,70 +10,62 @@ title: Sorting You can add a form to capture sorting and filtering options together. ```erb -
<%= sort_link(@q, :title, "Title") %> | +<%= sort_link(@q, :category, "Category") %> | +<%= sort_link(@q, :created_at, "Created at") %> | +
---|---|---|
<%= post.title %> | +<%= post.category %> | +<%= post.created_at.to_s(:long) %> | +