Ruby on Rails Sunday, January 21, 2018

On Sat, Jan 20, 2018 at 6:51 PM, kenatsun <kenatsun@gmail.com> wrote:

> The perplexing news is that it remains impossible to create or update an
> Offer. When I try to change the Person who is associated with an existing
> Offer, the odd result is that no error is returned: the "show" page is
> displayed with the happy message "Offer was successfully updated." But the
> associated Person is still the pre-existing one; the change was not saved.
>
> And when I try to create a new Offer, I get an error that has appeared
> before:
> 1 error prohibited this offer from being saved:
> Worker must exist

Is it possible to make a small standalone repo to demo this? That
would make it a lot easier to help.

If not, I suggest writing a test to create an Offer and working with
that until you get a working Offer.create statement.

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
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 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/CACmC4yD2XoMS_Sk8HEFUro5TexqVPZXKMjD%2BB1WW3%2BrP2jcxyA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment