I have the following in a controller
def update @permission = Permission.find_by_user_id(params[:user_id])
But I want it to also find by a
Try this:
@permission = Permission.find(:conditions => ['user_id = ? and project_id = ?', params[:user_id], params[:project_id]])