0

我在 Rails 应用程序中使用 JSONAPI::Resources Gem。我的一个模型已经有一个friendly_id字段,但目前我只能使用它们的 id 显示资源:http://localhost/items/<id>

我想在http://localhost/items/<friendly-id>. 我怎样才能做到这一点?

4

0 回答 0