How to access rails variable in assest pipelin


I am using devise for my user management. I am using angular js for my UI. I have folder structure like this for html: app/assets/partials/

I have added index.html.erb file over it. Now when I am going to access like this: <%= current_user %> I am getting error like: NameError (undefined local variable or method `current_user’ for #<#Class:0xa06acc0:0xc2db160>.

What to do if I want to use this variable in html files resides in assets pipeline?