I’m trying to pass a value from a cookie from the controller into model
by using attr_accessor. But it doesn’t work and I suspect I do something
Is this on the right path?
class Test < ActiveRecord::Base
… key …
class TestController < ApplicationController
@test = Test.new
@test.key = cookies[:my_key]