search for: find_user_interest

Displaying 1 result from an estimated 1 matches for "find_user_interest".

Did you mean: find_user_interests
2010 Apr 02
6
App_Controller and partial issues with has_many through
...oy Post has_many users through interests has_many interests, dependent destroy Post has_many interests Interest belongs to Post Interest belongs to User Application_Controller is as follows: class ApplicationController < ActionController::Base before_filter :login_from_cookie before_filter :find_user_interests helper :all # include all helpers, all the time session :session_key => ''_blah_session'' include AuthenticatedSystem def find_user_interests @user_interests = current_user ? current_user.interests : [] true end end Application.html.erb has as follows: <...