On Thu, Jun 30, 2016 at 9:35 AM, Ruth Stephenson <[email protected]> wrote:

> Basically, I want to not create double appointments for the same date
> and time, and I want to save them if they're not double bookings.
>
> There must be an easier way??

There is - take Colin's advice about working through a tutorial and
learn, for this use case at least, about ActiveRecord validations...

-- 
Hassan Schroeder ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAok4ADJTazweuRtipVzkVTv%3Dje9M3W2OxxQ8TYa0OEwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to