Agile Web Development with Rails, Edition 4

20.1 Testing Routes 18 Finding Your Way Around

19 Action Controller

edit config/initializers/session_store.rb
# Be sure to restart your server when you modify this file.
 
Depot::Application.config.session_store :cookie_store, key: '_depot_session'
 
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails generate session_migration")
# Depot::Application.config.session_store :active_record_store

20.1 Testing Routes 18 Finding Your Way Around