Rails: explanation of the active model?

What is the difference between Active Resource and Active Record in Rails?

+3
source share
2 answers

ActiveRecord: ORM for managing data in a relational database through SQL. more info ..

ActiveResource: Manage data through the REST API on another server, no longer part of Rails, but extracted as a gem. more info ..

ActiveModel: Behavior (mixins) to force any Ruby object to act as an ActiveRecord or ActiveResource, adding checks, callbacks, naming conventions, tracking, etc. more info ..

+14
source

ActiveRecord . (ORM).

ActiveResource , REST . , REST , .

+1

Source: https://habr.com/ru/post/1781278/


All Articles