class TrackingListsController < ApplicationController
  # Prevents the following error from showing up, common in Rails engines
  # A copy of ApplicationController has been removed from the module tree but is still active!
  unloadable
  
  before_filter :get_trackable_items_user
  before_filter :get_tracking_list
  
  
  protected

  def get_trackable_items_user
    @trackable_items_user = User.find(params[:user_id])
  end

  def get_tracking_list
    @tracking_list = @trackable_items_user.tracking_list
  end
  
end
class TrackingListsController < ApplicationController
  # Prevents the following error from showing up, common in Rails engines
  # A copy of ApplicationController has been removed from the module tree but is still active!
  unloadable
  
  before_filter :get_trackable_items_user
  before_filter :get_tracking_list
  
  def show
    respond_to do |format|
      format.html
    end
  end
  
  protected

  def get_trackable_items_user
    @trackable_items_user = User.find(params[:user_id])
  end

  def get_tracking_list
    @tracking_list = @trackable_items_user.tracking_list
  end
  
end
Add show method to Tracking List Controller.
Add show method to Tracking List Controller.

Signed-off-by: Chris Toynbee <9bf3774ab19e71b4502fac9bd506468044cb6bd6@gmail.com>
