ruby - How do I set the session param for multiple namespaces? -
if handling authentication manually, , setting session so:
session[:user_id] = authenticated.user.id
user_id not show in session hash when viewed namespace. in instance have namespace :api, , session doesn't show @ api/show/current. how set session hash viewed in both namespaces?
the session independent namespaces, maybe there else wrong app?
where set user_id? maybe providing more code helps
Comments
Post a Comment