No, no, if field is null or empty you can use this.

It's not specifc for join or association

You are learning the ROR, and is better for you use .empty?

It's will cause less errors for you

Sorry for my english.. i'm still learning =D

2010/12/12 Ast Jay <[email protected]>

> Thanks Rodrigo.
>
> Is that only for db fields that are part of the 'join'/association?
> Because I had some other fields that were empty too (but they belonged
> to the post model) but they didn't cause any probs.
>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>


-- 
Rodrigo Mendonça
(62) 8567-3142

-- 
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