If you want to set up a one-to-one relationship between two models, you'll need to add belongs_to to one, and has_one to the other. How do you know which is which?
No Answer is Posted For this Question
Be the First to Post Answer
Explain about restful architecture?
Why do we use request.xhr? in rails
Write the command to run the migration.
What is the difference between concern and application_controller.rb in ruby on rails?
Explain view in rails?
Explain me what is the purpose of rjs in rails?
What is the rail console?
What are the different filters used in ruby on rails?
How do rails implement ajax?
what is the log that has to seen to check for an error in ruby rails?
Tell me what is coc in rails?
What is the purpose of auto_load in ruby?