Advanced ActiveRecord tutorials

Any recommendations for good advanced tutorials on ActiveRecord in Rails4?

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

Thanks,

Ganesh

Hi Ganesh,

The official Ruby on Rails guides has a pretty extensive coverage of ActiveRecord 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 :slight_smile:

Hope this helps.

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.

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

http://railscasts.com/episodes/215-advanced-queries-in-rails-3?view=asciicast
http://railscasts.com/episodes/239-activerecord-relation-walkthrough?view=asciicast
http://erniemiller.org/2010/03/28/advanced-activerecord-3-queries-with-arel/
http://learntribe.com/kevinelliott/ruby_on_rails_advanced_activerecord

Have a nice day and good reading !

Cheers