Add of authentication 

this tutorial was used: http://guides.railsgirls.com/devise/