Skip to content

Instantly share code, notes, and snippets.

@kinopyo
Created April 20, 2012 06:27
Show Gist options
  • Save kinopyo/2426570 to your computer and use it in GitHub Desktop.
Save kinopyo/2426570 to your computer and use it in GitHub Desktop.
Rails ActiveRecord, includes can specify multiple models
Topic.includes(:tag,:user).paginate(:page => params[:page], :per_page => 15)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment