Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TasksController < ApplicationController
- before_filter :find_tasks
- private
- find_tasks
- Task.find_all_by_account_id(account_id)
- # or if you have an account object... try to :include the tasks into that when it's loaded.
- end
- end
Add Comment
Please, Sign In to add comment