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?
860Post New Ruby on Rails Questions
The string can be represented in single as well as double quotes. What is the difference between the two?
What role do sub-directory app/helpers and app/controllers play?
What are the steps involved in writing and setting up an application in ruby on rails?
What is the main function of helpers used in ruby on rails?
Explain the role of sub directory app/controllers and app/helpers.
What is bundler?
difference between member routes and collection routes ?
Explain view in rails?
Write a program to generate and run the application without the use of database
What is the process for creating a controller for the subject? What is its role?
Difference between gem and plugin?
Mention the differences between the observers and callbacks in ruby on rails.
what are some advantages of using ruby on rails?
How many filters are there in rails.
Can you explain me how rails implements ajax?