Rails 3: Disable session cookies

后端 未结 4 1254
离开以前
离开以前 2021-02-05 14:09

I created a controller to serve dynamic stylesheets, so I can use the image_tag helper and add some cache control.

The problem is that every time the css file is loaded

4条回答
  •  长情又很酷
    2021-02-05 14:28

    or one can use session :off anyways (even in Rails 3) :

    https://github.com/kares/session_off

    class StylesheetsController < ActionController::Base
      session :off # for all actions in this controller
    end
    

提交回复
热议问题