On 10 July 2015 at 17:34, Bazley <1975...@gmail.com> wrote:
> Thank you Colin, that fixed it. I appreciate your help.
> The solution raises an interesting question, fully specified here on SO if
> you're interested:
>
>>
>>
>> http://stackoverflow.com/questions/31306347/rails-carrierwave-has-many-error/31345762#31345762
>
>
> The question is, is a solution possible with only a single column in the
> Picturething model? Having two columns seems redundant when they are only
> ever going to hold the same value (the character_id)?

It is not redundant as which one it is in tells you which association
it is.  You could have an entry in both.  If you can't have an entry
in both then you many not have specified the associations in the best
way.  Have just one association and use a different method of saying
which type it is for example.

Colin

-- 
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+unsubscr...@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/CAL%3D0gLtyYWD6gPXw6UU6R%3DVkcgd3ZeozxSj9eOYe3zezhx8kwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to