Ruby on Rails Monday, December 31, 2012

On Sun, Dec 30, 2012 at 7:59 PM, <sfnatureguy@gmail.com> wrote:

> As a user, I can add my favorite book to my book list.
> Another user adds the same book to their book list.
>
> There should only be one instance of the book in the database but 2
> user/book associations.

When someone wants to add their favorite, check the database to see if
it exists. What's the problem?

-Dave

--
Dave Aronson, the T. Rex of Codosaurus LLC,
secret-cleared freelance software developer
taking contracts in or near NoVa or remote.
See information at http://www.Codosaur.us/.

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment