-2

I am new in RoR , and I wanted to design a web based system. I want to know , if we don't use association in RoR , do happen any problem in system? Please help me and explain me what problem could be happen in such a system. thanks

lucapette
  • 20,564
  • 6
  • 65
  • 59
ainternet73
  • 117
  • 2
  • 8
  • 1
    Rails guides has explained this well. They describe the advantages and disadvantages both with clear and simple examples. http://guides.rubyonrails.org/association_basics.html – Alok Swain Jan 09 '12 at 12:20

1 Answers1

3

The associations that Rails provides you gives some methods that would make your querying simpler, more readable, maintainable and effective.

Try writing two versions of a Customer-Orders application and then Customer-Order-Supplier 1) with associations and the other without and perform some different type of queries and see the beauty of queries where associations was exploited. From the queries executed you can also see the time they take from the Rails log. Then go into some more complicated examples to delve deeper. You can find some simple examples to start with in the Rails guides.

Alok Swain
  • 6,409
  • 5
  • 36
  • 57