Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Feb 20th, 2018 48 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. class TasksController < ApplicationController
  2.   before_filter :find_tasks
  3.  
  4.   private
  5.  
  6.   find_tasks
  7.     Task.find_all_by_account_id(account_id)
  8.     # or if you have an account object... try to :include the tasks into that when it's loaded.
  9.   end
  10. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top