Last Updated on November 30, 2019 by Christopher G Mendla
I was working with a Rails app that pulled data from a non rails database.
Things were a bit quirky and I wanted to double check the type of the column. I found that putting the following in a view will work.
<%= opportunity.column_for_
attribute (‘yearly_sales’).type %>
In this case, it returned “decimal”.