So I have an errors partial to print the contents of the errors
collection in an entity as follows:
<ul>
<% entity.errors.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
However, I am getting this: ["Please provide a name for this
entity."]. As you might guess, I just want the message, not the
collection within the collection.
Although I am new to Ruby and Rails, I have managed to figure out how
to iterate into the "inner" collection to print out the String I want.
However, is there a "cleaner" way to get at that information within a
template?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en.