When i write a Controller Class, it's possible to use methods like:
@article.update(article_params)
The method update
comes from the class ActiveRecord::Base
:
http://api.rubyonrails.org/v2.3/classes/ActiveRecord/Base.html#M001966
My questions:
How can I use the
update
method from a Controller class that does not inherit fromActiveRecord::Base
? It looks likeApplicationController
inherits only fromActionController::Base
Are there any resources available to read up on this?
Thanks for help, Cheers B