enum_help icon indicating copy to clipboard operation
enum_help copied to clipboard

display enum field value in view

Open ziweizhou opened this issue 8 years ago • 0 comments

thanks for such a great gem. i have a question, is there a way to overwrite the default behavior in view level? Because sometimes I just want to display the actual value of the enum field in the HTML page. But currently if I do

<%=task.status%>

In the html file, I see following

{:pending => "Pending", :confirmed => "Confirm" ...} 

It will be great if I can just see its status. Thanks

ziweizhou avatar Feb 24 '17 02:02 ziweizhou