Displaying 1 result from an estimated 1 matches for "_blah_session".
2010 Apr 02
6
App_Controller and partial issues with has_many through
...st 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:
<%= render :partial => "users/interests", :object => @user_interests %>
_interests.ht...