fix errbit primer and security update for rails