You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also format using Rails helpers like `number_to_currency` (note that `view_context` is used to access the helper):
132
+
133
+
```ruby
134
+
field :price, as::number, format_using:-> (value) { view_context.number_to_currency(value) }
135
+
```
136
+
129
137
## Sortable fields
130
138
131
139
One of the most common operations with database records is sorting the records by one of your fields. For that, Avo makes it easy using the `sortable` option.
0 commit comments