On Saturday, January 11, 2020 at 1:48:31 AM UTC-5, fugee ohu wrote:
>
> 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
>

After placing <%= javascript_pack_tag 'js-cookie', 'data-turbolinks-track': 
'reload'   %>  in application.html.erb I get the error that it hasn't been 
included in manifest.js  

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/96743144-5c4d-497a-bb6f-4b79d4366b80%40googlegroups.com.

Reply via email to