LoginSignup
3
3

More than 5 years have passed since last update.

RailsAdmin で has_many の表示を改善するお手軽な方法

Last updated at Posted at 2014-03-13

RailsAdmin ではデフォルトで has_many な関連の値が次のように表示されます。

関連1 と 関連2 と 関連3

これ読みづらいですよね。

上記の の部分は I18n を利用して表示されているので ja.yml 等を次のようにすると、ちょっとましになります。

 ja:
   support:
     array:
-      last_word_connector: と
-      two_words_connector: と
-      words_connector: と
+      last_word_connector: <br/>
+      two_words_connector: <br/>
+      words_connector: <br/>
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3