# Advanced ActiveRecord tutorials

**URL:** <https://discuss.rubyonrails.org/t/advanced-activerecord-tutorials/68585>\
**Category:** rubyonrails-talk\
**Created:** [February 24, 2014, 10:10am UTC](https://discuss.rubyonrails.org/t/advanced-activerecord-tutorials/68585 "2014-02-24T10:10:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesh\_Ranganathan](https://avatars.discourse-cdn.com/v4/letter/g/e9bcb4/32.png) [@Ganesh\_Ranganathan](https://discuss.rubyonrails.org/u/Ganesh_Ranganathan)\
**Post date:** [February 24, 2014, 10:10am UTC](https://discuss.rubyonrails.org/t/advanced-activerecord-tutorials/68585/1 "2014-02-24T10:10:10Z")

</div>

Any recommendations for good advanced tutorials on ActiveRecord in Rails4?

I’m interested in joins, group, counts especially for deep associations.

Thanks,

Ganesh

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@Steve\_Robinson](https://discuss.rubyonrails.org/u/Steve_Robinson)\
**Post date:** [February 25, 2014, 1:20pm UTC](https://discuss.rubyonrails.org/t/advanced-activerecord-tutorials/68585/2 "2014-02-25T13:20:47Z")

</div>

Hi Ganesh,

The official Ruby on Rails guides has a pretty extensive coverage of ActiveRecord [http://guides.rubyonrails.org/active\_record\_querying.html](http://guides.rubyonrails.org/active_record_querying.html)

If you want to achieve something specific, then you’ll find a lot of tutorials for that. And as always you can ask here as well 🙂

Hope this helps.

---

<div class="post-metadata">

**Author:** ![mike30](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mike30](https://discuss.rubyonrails.org/u/mike30)\
**Post date:** [February 26, 2014, 8:36pm UTC](https://discuss.rubyonrails.org/t/advanced-activerecord-tutorials/68585/3 "2014-02-26T20:36:41Z")

</div>

It’s not really a tutorial, but if you really want an advance discussion and in-depth coverage of ActiveRecord, I would recommend _The Rails 4 Way_ which, in my opinion, is the best reference for back end development on Rails. I don’t have any connection to the book or its authors, but I use it a lot.

---

<div class="post-metadata">

**Author:** ![R\_Francky](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@R\_Francky](https://discuss.rubyonrails.org/u/R_Francky)\
**Post date:** [February 27, 2014, 5:04am UTC](https://discuss.rubyonrails.org/t/advanced-activerecord-tutorials/68585/4 "2014-02-27T05:04:53Z")

</div>

Here’s a list of articles on advanced ActiveRecord, quite old but I think they are still relevant.

> **[\#215 Advanced Queries in Rails 3 - RailsCasts](http://railscasts.com/episodes/215-advanced-queries-in-rails-3?view=asciicast)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

> **[\#239 ActiveRecord::Relation Walkthrough - RailsCasts](http://railscasts.com/episodes/239-activerecord-relation-walkthrough?view=asciicast)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

[http://erniemiller.org/2010/03/28/advanced-activerecord-3-queries-with-arel/](http://erniemiller.org/2010/03/28/advanced-activerecord-3-queries-with-arel/)[http://learntribe.com/kevinelliott/ruby\_on\_rails\_advanced\_activerecord](http://learntribe.com/kevinelliott/ruby_on_rails_advanced_activerecord)

Have a nice day and good reading !

Cheers
