Hello, I have this method in my helper that is supposed to return true if the campaignadmin is in the campaignadmins habtm. def has_access? campaign, campadmin begin #prints out the campadmin''s id puts campadmin.id campaign.campaignadmins.each do |ca| #prints out all the campadmins id''s in the campaign puts ca.id end campaign.campaignadmins.find(campadmin.id) puts "CAMPAIGN ADMIN EXISTS" return true rescue ActiveRecord::RecordNotFound return false end end The thing is I get returned 3 3 meaning that the ids are the same. However false is returned from the method meaning that the find method highlighted that it couldn''t find it. Now I assume that the find method is committing an sql call. But the problem lies in the fact that the campaignadmins have not been saved because other validation fails. Does anyone know of a workaround apart from me having to do campaign.campaignadmins.each do |ca| if ca.id = campadmin.id return true end end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---