Rails application using bootstrap for ui, device for autentication and cancan for authorizaton