If I want to return the Active and Inactive options for me to select, I use the following code in the view, so it returns the 2 statuses: >
<%= select(:student, :status, Situation.all.collect { |c| [ c.descricao, c.id ] }) %>
But I...
asked by
14.09.2016 / 15:43