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
like this: <%= current_user %> I am getting error like: NameError
(undefined local variable or method `current_user’ for

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs