上記ものもを日本語対応させたい場合、下のように書く
<%= form.select :status, Post.statuses.keys,class:"form-control" %>
<%= form.select :status, Post.statuses.keys.map {|k| [I18n.t("enums.post.status.#{k}"), k]} ,class:"form-control" %>
Go to list of users who liked
More than 3 years have passed since last update.
上記ものもを日本語対応させたい場合、下のように書く
<%= form.select :status, Post.statuses.keys,class:"form-control" %>
<%= form.select :status, Post.statuses.keys.map {|k| [I18n.t("enums.post.status.#{k}"), k]} ,class:"form-control" %>
Register as a new user and use Qiita more conveniently
Go to list of users who liked