mardi 28 novembre 2017

how to print user_id using the devise gem

I currently trying to do something like this in the applicaiton.html.erb

<h1> <% print "Customer id #{current_user}"%> </h1> 

but I get nothing. the 'Customer id' is not being printed either. What am I doing wrong ?

Thanks for your time

Aucun commentaire:

Enregistrer un commentaire