add filter to home controller instead of base controller to store cookie, add specs for controllers:admin/affiliate_settings and home_controller, have only index action for users affilates_controller and add the view for the same using the partial, use spree_current_user instead of @user in partial spree/users/_affiliate