Ruby on Rails
Friday, January 10, 2020
I installed js-cookie using `yard add js-cookie and put this line in application.js
require("js-cookie")
but when I use this code in my channel:
console.log(Cookies.get('current_user_id'))
I get the error Cookies is not defined
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/37e95305-16e2-4ea1-8564-54ad42550e8a%40googlegroups.com.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment