When I get one existing genre badge
genre_badge = game.genre_badges.first
genre_badge.game_id = nil
genre_badge.save!
It creates an validation exception:
"ActiveRecord::RecordInvalid: Validation failed: Game has already been
taken"
I already have have specified that I want to allow_blank. I really
don't know why I get the validation error. I also tested allow_nil but
got the same error.
Андрей Большов
unread,
Apr 4, 2013, 9:54:54 AM4/4/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message