Ruby on Rails Wednesday, January 8, 2020

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 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/9a086fb3-2bdd-4c2f-a80a-9f3d35ffe881%40googlegroups.com.

No comments:

Post a Comment