Skip to content

display enum field value in view #37

@ziweizhou

Description

@ziweizhou

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions