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?
920Post New Ruby on Rails Questions
What role does garbage collection play?
How will be the future for ruby on rails?
What are the different components of rails ?
what is a rails migration? Write up a short example of a simple rails migration with a table called customers, a string column called name, and a text column called description?
How can the filter methods in ruby on rails be protected?
Explain the role of sub directory app/controllers and app/helpers.
Explain Get and post method?
What is the purpose of load in ruby?
What are the different filters used in ruby on rails?
Can you list out what can rails migration do?
Explain me what is the role of rails controller?
Difference between gem and plugin?
Do you know the role of garbage collection in ruby on rails?
What is active record in rails?
Is ruby on rails dying?