As a new member of this community and moreover newer in Rails (version 5.1.1) i really need ur help.
Seems like my sessions - (stored in config/initializers/session_store.rb
by gem as shown here Active_Record_Store gem and defined in config/application.rb
as:
ActiveRecord::SessionStore::Session.table_name = 'legacy_session_table'
ActiveRecord::SessionStore::Session.primary_key = 'session_id'
ActiveRecord::SessionStore::Session.data_column_name = 'legacy_session_data'
As shown here ActiveRecord::SessionStore - APIdock - don't initialize and I can't get why.
When i try to assign any value to any key in any controller (for example, application), it returns error:
undefined method []=' for nil:nilclass
Pry gem writes the same, then that the just session
- is nil , and for request.session
- <ActionDispatch::Request ::Session:0x7f92db05ae18 not yet loaded>
. Session table is migrated, tried everything i can.
Please, help to tired noob initialize it and finally access the value of sessions and make them work! Thanks