Displaying 1 result from an estimated 1 matches for "elvanja".
Did you mean:
belanja
2013 May 28
5
Storing Rails controller callback data in session
...ter] = @counterend
However, stored session is *lost* in subsequent calls.
# although the same session is targeted (same id)# the saved value is not the samedef index
@counter = session[:counter] || 0end
I''ve created a small Rails project that demonstrates the issue:
https://github.com/elvanja/controller_callbak_store_in_session
Any input appreciated.
--
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-/JYPxA39U...