KTU wrote:> whats the syntax for next item jump on the loop
>
> <% @ldap_entries.each do |entry| %>
> <% if entry[:mail] == '''' %>
> <% next %>
>
> does not seem to work ?
Hi KTU,
Not exactly sure what you want to do here, but if you are looking to
"filter"
your ldap_entries array you might want to use the "select" interator.
@ldap_entries.select{|e| entry[:mail] != ''''}.each
Cheers,
Aditya
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---