Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def validate
- books = Book.find_all_by_title(title)
- for book in books
- puts book.authors.inspect
- puts authors.inspect
- puts book.authors == authors
- return false if book.authors == authors
- end
- end
Add Comment
Please, Sign In to add comment