1.

What Things We Can Define In The Model?

Answer»

There are lot of things you can define in models few are:

  1. Validations (LIKE validates_presence_of, numeracility_of, format_of ETC.)
  2. RELATIONSHIPS (like has_one, has_many, HABTM etc.)
  3. CALLBACKS (like before_save, after_save, before_create etc.)
  4. Suppose you INSTALLED a plugin say validation_group, So you can also define validation_group settings in your model
  5. ROR Queries in Sql
  6. Active record Associations Relationship

There are lot of things you can define in models few are:



Discussion

No Comment Found