User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
ActiveRecord::RecordInvalid:Validation failed:Technologiesportfolio must exist
from/Users/mac/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.7/lib/active_record/validations.rb:78:in`raise_validation_error'
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that
you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice
sessions to improve your knowledge and scores.
manpreet
Best Answer
3 years ago
I was trying to save nested attributes for technologies with portfolio, I have the following code: portfolio.rb (model)
technology.rb model:
Now when I go to the rails console and try to insert multiple attributes:
It gave me this error:
Any idea what am I missing here?
Schema for both technology and portfolio: