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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -