On Friday, May 8, 2015 at 2:03:17 PM UTC+1, Daniel Goldberg wrote:
>
> When I try to create some User with the POST below I received the 
> following msg:
>
> Completed 404 Not Found in 17005ms (Views: 1.7ms | ActiveRecord: 6.6ms).
>
> I debugged a little and I find this error
>
> Couldn't find Shared::Category with ID=5 for Shared::User with ID=
>
> I don't know really what's going on. I can't create any user.
>

Is there a category with ID 5? The parameters your form is submitting imply 
that there should be an already existing category with that id that is 
already associated with this user (which if the user is not new) is not 
possible. This is probably down to how you are building your form and what 
you are trying to do (in particular do you want a form that creates users & 
associated categories in one go or one that creates a user and associates a 
number of pre-existing categories with the user?)

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 [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/4e441c36-1d93-4777-9d63-40e2e6762c85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to