Programming in ruby or rials – ror: Rails ActiveAdmin max column length on newest questions tagged ruby-on-rails – Stack Overflow
In a Rails app using ActiveAdmin, one of my fields is printing an enormous length of text in a very narrow column and causing a single db row to take up an entire screen vertically. I only want ActiveAdmin to show the first ~50 chars with an ellipsis if it exceeds.
index do
column :too_long
...
I am looking for something like this
index do
column :too_long, :max => 50
...
See Answers
source: http://stackoverflow.com/questions/11915148/rails-activeadmin-max-column-length
Programming in ruby or rials – ror: programming-in-ruby-or-rials-ror
Recent Comments