I can get object attributes with:
Class Object
field :name
field :email
field :second_name
end
With this loop:
<% @object.attributes.each do |attr_name| %>
....
<% end %>
If i have 3 attributes I get 3 attributes.
I want only get attr_name of name and email attributes
How can I in this loop discard or exclude the field :second_name
Thank you
You can just add a condition inside your loop like so: