what is the difference between the Observers and Callbacks in Ruby on Rails?
Answer / Karan Majumdar
In Ruby on Rails, both observers and callbacks are used for handling events. However, observers allow you to observe multiple models at once and execute code when associated events occur. Callbacks, on the other hand, are methods that get executed automatically when a specific event occurs within a model.
| Is This Answer Correct ? | 0 Yes | 0 No |
iam new to the ruby on rails. suggest me some pdf and online books for ruby and rails
What role do sub-directory app/helpers and app/controllers play?
what is session and cookies
how many types of callbacks available in ror?
What is the current version of ruby on rails?
Why we use migration in rails?
When are self.up and self.down methods used?
How can you protect filter methods in rails?
How many filters are there in rails.
what is Mixin in Rails?
How many types of relationships does a model has?
What is action cable?