[Rails] Re: How do I get the devise current_user in javascript

2020-01-09 Thread fugee ohu
On Thursday, January 9, 2020 at 1:53:52 AM UTC-5, Uzval Mallepeddi wrote: > > In application.rb file declare a before_action function that sets the > current_user into a cookie/session (cookie prefered). Then you can access > the cookies using "document.cookies" in javascript. > > On

[Rails] Re: How do I get the devise current_user in javascript

2020-01-08 Thread Uzval Mallepeddi
In application.rb file declare a before_action function that sets the current_user into a cookie/session (cookie prefered). Then you can access the cookies using "document.cookies" in javascript. On Wednesday, January 8, 2020 at 10:13:44 PM UTC-5, fugee ohu wrote: > > ? > -- You received this