On 13 April 2012 06:50, amvis <[email protected]> wrote:
> [snip]
> when i check like this i got the solution
>
>   if [email protected]_admins[0].nil?

if [email protected]_admins.empty?
might be a bit cleaner and easier to understand, or
if @user.business_admins.count == 0

Colin

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to