答案 0 :(得分:2)
有人在Github上回答了我的问题,here is the link
可以这样做
config.model Booking do
list do
field :id do
formatted_value do
path = bindings[:view].show_path(model_name: 'Booking', id: bindings[:object].id)
bindings[:view].link_to(bindings[:object].id, path)
end
end
....