update for rails 4
update for bootstrapactive