Posted on 16 Aug 2022, this text provides information on Technology & Software related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for 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
2 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: