Ruby on Rails
Thursday, October 29, 2015
On Thursday, October 29, 2015 at 6:59:09 AM UTC, Eduardo Campestrini wrote:
-- def reject_contact(attributes)attributes['phone'].blank?attributes['website'].blank?end
This doesn't do what you want - it's return value depends solely on the blankness of the website attribute.
Fred
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/91b49968-27cb-4de6-b8d0-8741530715b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment