We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53788ba commit bbb3069Copy full SHA for bbb3069
1 file changed
app/admin/items.rb
@@ -119,6 +119,9 @@
119
attributes_table do
120
row :id
121
row :name
122
+ row "Description" do |item|
123
+ item.description.presence || "No description"
124
+ end
125
row "Category" do |item|
126
link_to item.category.name, admin_category_path(item.category) if item.category
127
end
@@ -220,7 +223,7 @@ def apply_tmp_params(item, tmp)
220
223
actions :all, except: [:destroy]
221
224
222
225
action_item :back, only: :show do
- link_to "Back", admin_items_path
226
+ link_to "Back to Items", admin_items_path
227
228
229
action_item :toggle, only: :show do
0 commit comments