README.md in redde-0.3.16 vs README.md in redde-0.3.17
- old
+ new
@@ -161,5 +161,35 @@
article_category:
title: Заголовок
position: Позиция
visible: Отображать на сайте
```
+
+## Index view customization
+
+By default, gem will render view with all fields.
+You can customize this in two ways:
+
+### Array
+
+You can `INDEX_COLUMNS` array to your model to customize index fields and ther sort order by defining constant inside model
+
+```
+INDEX_COLUMNS = %w(title created_at)
+```
+
+### Hash
+
+If you need to add, for example, link to nested model, you can define hash inside model:
+
+```
+class Calculator < ActiveRecord::Base
+ INDEX_COLUMNS = {
+ name: '',
+ hop: "link_to \"Live (#{2 * 2})\", root_url"
+ }
+ FORM_COLUMNS = %w(name)
+end
+
+```
+
+